#include <ipsocket.h>
Public Member Functions | |
IPInfo (int family, size_t addrlen, struct sockaddr const *addr, char const *name, IPInfo *next) | |
Constructor. | |
IPInfo (IPInfo const &ipi) | |
Copy constructor. | |
~IPInfo () | |
Destructor. | |
int | family () const |
Returns the address protocol family. | |
size_t | addrlen () const |
Returns the address size. | |
struct sockaddr const * | addr () const |
Returns the address. | |
char const * | cname () const |
Returns the canonical name. | |
std::string const & | name () const |
Returns the canonical name (std::string version). | |
IPInfo const * | next () const |
Next IP information (non-NULL if multiple answers available). |