Apache Mesos
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
net::IP Class Reference

#include <ip.hpp>

Inheritance diagram for net::IP:
net::IPv4 net::IPv6

Classes

class  Network
 
union  Storage
 

Public Member Functions

 IP (const struct in_addr &_storage)
 
 IP (const struct in6_addr &_storage)
 
 IP (uint32_t _ip)
 
int family () const
 
Try< struct in_addr > in () const
 
Try< struct in6_addr > in6 () const
 
bool isLoopback () const
 
bool isAny () const
 
bool operator== (const IP &that) const
 
bool operator!= (const IP &that) const
 
bool operator< (const IP &that) const
 
bool operator> (const IP &that) const
 

Static Public Member Functions

static Try< IPparse (const std::string &value, int family=AF_UNSPEC)
 
static Try< IPcreate (const struct sockaddr_storage &_storage)
 
static Try< IPcreate (const struct sockaddr &_storage)
 

Protected Member Functions

void clear ()
 

Protected Attributes

int family_
 
Storage storage_
 

Constructor & Destructor Documentation

net::IP::IP ( const struct in_addr &  _storage)
inlineexplicit
net::IP::IP ( const struct in6_addr &  _storage)
inlineexplicit
net::IP::IP ( uint32_t  _ip)
inlineexplicit

Member Function Documentation

void net::IP::clear ( )
inlineprotected
Try< IP > net::IP::create ( const struct sockaddr_storage &  _storage)
inlinestatic
Try< IP > net::IP::create ( const struct sockaddr &  _storage)
inlinestatic
int net::IP::family ( ) const
inline
Try<struct in_addr> net::IP::in ( ) const
inline
Try<struct in6_addr> net::IP::in6 ( ) const
inline
bool net::IP::isAny ( ) const
inline
bool net::IP::isLoopback ( ) const
inline
bool net::IP::operator!= ( const IP that) const
inline
bool net::IP::operator< ( const IP that) const
inline
bool net::IP::operator== ( const IP that) const
inline
bool net::IP::operator> ( const IP that) const
inline
Try< IP > net::IP::parse ( const std::string &  value,
int  family = AF_UNSPEC 
)
inlinestatic

Member Data Documentation

int net::IP::family_
protected
Storage net::IP::storage_
protected

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