Go to the documentation of this file.
12 #ifndef INET_ADDRESS_H
13 #define INET_ADDRESS_H
63 INETAddress (
const char* host_,
const char* service_,
INETAddress()
Default constructor.
int getPort() const
Return port.
SA * getAddress() const
Get hold of address structure.
const int getLength() const
Return address length.
static string get_fully_qualified_domain_name(vector< string > &aliases_)
Return fully-qualified host name.
void init()
Perform initialization common to all ctors.
~INETAddress()
Destructor.
SA_IN m_address
Internet address structure sockaddr_in.
void dump()
Dump the address content to log file.
string getHostName()
Return host name.
static string m_fqdn_cache
Cached fully-qualified domain name.
void createHostPort(const char *host_, int port_)
Makes socket address out of host name and port.
int getServiceByName(string serv_, Protocol prot_=TCP)
Lookup port by its service name found in /etc/services.