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

#include <ip.hpp>

Public Member Functions

 Network (const Network &network)
 
Networkoperator= (const Network &network)
 
IP address () const
 
IP netmask () const
 
int prefix () const
 
bool operator== (const Network &that) const
 
bool operator!= (const Network &that) const
 

Static Public Member Functions

static Network LOOPBACK_V4 ()
 
static Network LOOPBACK_V6 ()
 
static Try< Networkparse (const std::string &value, int family=AF_UNSPEC)
 
static Try< Networkcreate (const IP &address, const IP &netmask)
 
static Try< Networkcreate (const IP &address, int prefix)
 
static Result< NetworkfromLinkDevice (const std::string &name, int family)
 

Protected Member Functions

 Network (const IP &_address, const IP &_netmask)
 

Protected Attributes

std::unique_ptr< IPaddress_
 
std::unique_ptr< IPnetmask_
 

Constructor & Destructor Documentation

net::IP::Network::Network ( const Network network)
inline
net::IP::Network::Network ( const IP _address,
const IP _netmask 
)
inlineprotected

Member Function Documentation

IP net::IP::Network::address ( ) const
inline
Try< IP::Network > net::IP::Network::create ( const IP address,
const IP netmask 
)
inlinestatic
Try< IP::Network > net::IP::Network::create ( const IP address,
int  prefix 
)
inlinestatic
Result< IP::Network > net::IP::Network::fromLinkDevice ( const std::string &  name,
int  family 
)
inlinestatic
IP::Network net::IP::Network::LOOPBACK_V4 ( )
inlinestatic
IP::Network net::IP::Network::LOOPBACK_V6 ( )
inlinestatic
IP net::IP::Network::netmask ( ) const
inline
bool net::IP::Network::operator!= ( const Network that) const
inline
Network& net::IP::Network::operator= ( const Network network)
inline
bool net::IP::Network::operator== ( const Network that) const
inline
Try< IP::Network > net::IP::Network::parse ( const std::string &  value,
int  family = AF_UNSPEC 
)
inlinestatic
int net::IP::Network::prefix ( ) const
inline

Member Data Documentation

std::unique_ptr<IP> net::IP::Network::address_
protected
std::unique_ptr<IP> net::IP::Network::netmask_
protected

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