Apache Mesos
Public Types | Public Member Functions | Static Public Member Functions | List of all members
process::network::Address Class Reference

#include <address.hpp>

Inheritance diagram for process::network::Address:
Variant< unix::Address, inet4::Address, inet6::Address >

Public Types

enum  Family { Family::UNIX, Family::INET4, Family::INET6 }
 

Public Member Functions

 Address (const inet::Address &address)
 
 Address (unix::Address address)
 
 Address (inet4::Address address)
 
 Address (inet6::Address address)
 
Family family () const
 
size_t size () const
 
 operator sockaddr_storage () const
 
- Public Member Functions inherited from Variant< unix::Address, inet4::Address, inet6::Address >
 Variant (U &&u)
 
auto visit (Fs &&...fs) const -> decltype(boost::apply_visitor(overload(std::forward< Fs >(fs)...), std::declval< boost::variant< unix::Address, Ts... > & >()))
 
auto visit (Fs &&...fs) -> decltype(boost::apply_visitor(overload(std::forward< Fs >(fs)...), std::declval< boost::variant< unix::Address, Ts... > & >()))
 
bool operator== (const Variant &that) const
 
bool operator!= (const Variant &that) const
 

Static Public Member Functions

static Try< Addresscreate (const sockaddr_storage &storage, Option< socklen_t > length=None())
 
static Try< Addresscreate (const sockaddr *address, size_t length)
 

Member Enumeration Documentation

Enumerator
UNIX 
INET4 
INET6 

Constructor & Destructor Documentation

process::network::Address::Address ( const inet::Address address)
inline
process::network::Address::Address ( unix::Address  address)
inline
process::network::Address::Address ( inet4::Address  address)
inline
process::network::Address::Address ( inet6::Address  address)
inline

Member Function Documentation

static Try<Address> process::network::Address::create ( const sockaddr_storage &  storage,
Option< socklen_t >  length = None() 
)
inlinestatic
static Try<Address> process::network::Address::create ( const sockaddr *  address,
size_t  length 
)
inlinestatic
Family process::network::Address::family ( ) const
inline
process::network::Address::operator sockaddr_storage ( ) const
inline
size_t process::network::Address::size ( ) const
inline

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