Open Lighting Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
ola::network::IPV4Address Class Reference

Public Types

enum  { LENGTH = 4 }

Public Member Functions

 IPV4Address (const struct in_addr &address)
 IPV4Address (unsigned int address)
 IPV4Address (const IPV4Address &other)
IPV4Addressoperator= (const IPV4Address &other)
bool operator== (const IPV4Address &other) const
bool operator!= (const IPV4Address &other) const
bool operator< (const IPV4Address &other) const
bool operator> (const IPV4Address &other) const
struct in_addr Address () const
uint32_t AsInt () const
bool IsWildcard () const
void Get (uint8_t ptr[LENGTH])
std::string ToString () const

Static Public Member Functions

static IPV4AddressFromString (const std::string &address)
static bool FromString (const std::string &address, IPV4Address *target)
static IPV4Address FromStringOrDie (const std::string &address)
static IPV4Address WildCard ()
static IPV4Address Broadcast ()
static IPV4Address Loopback ()

Friends

ostream & operator<< (ostream &out, const IPV4Address &address)

The documentation for this class was generated from the following files: