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

#include <address.hpp>

Inheritance diagram for process::network::inet::Address:
process::network::inet4::Address process::network::inet6::Address

Public Member Functions

 Address (const net::IP &_ip, uint16_t _port)
 
Try< std::string > lookup_hostname () const
 Returns the hostname of this address's IP, using a reverse DNS lookup for remote addresses or the local hostname for a local address. More...
 
 operator sockaddr_storage () const
 
bool operator< (const Address &that) const
 
bool operator> (const Address &that) const
 
bool operator== (const Address &that) const
 
bool operator!= (const Address &that) const
 

Public Attributes

net::IP ip
 
uint16_t port
 

Constructor & Destructor Documentation

process::network::inet::Address::Address ( const net::IP _ip,
uint16_t  _port 
)
inline

Member Function Documentation

Try<std::string> process::network::inet::Address::lookup_hostname ( ) const
inline

Returns the hostname of this address's IP, using a reverse DNS lookup for remote addresses or the local hostname for a local address.

Returns
the hostname of this address's IP.
process::network::inet::Address::operator sockaddr_storage ( ) const
inline
bool process::network::inet::Address::operator!= ( const Address that) const
inline
bool process::network::inet::Address::operator< ( const Address that) const
inline
bool process::network::inet::Address::operator== ( const Address that) const
inline
bool process::network::inet::Address::operator> ( const Address that) const
inline

Member Data Documentation

net::IP process::network::inet::Address::ip
uint16_t process::network::inet::Address::port

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