This class stores information about a host such as host name, alias names and a list of IP addresses.
typedef std::vector < std::string > AliasList;
Creates an empty HostEntry.
struct hostent * entry
Creates the HostEntry from the data in a hostent structure.
struct addrinfo * info
Creates the HostEntry from the data in an addrinfo structure.
Creates the HostEntry by copying another one.
Destroys the HostEntry.
const AddressList & addresses() const;
Returns a vector containing the IPAddresses for the host.
const AliasList & aliases() const;
Returns a vector containing alias names for the host name.
const std::string & name() const;
Returns the canonical host name.
Assigns another HostEntry.
HostEntry & hostEntry
Swaps the HostEntry with another one.