#include <inetaddress.h>
Public Member Functions | |
bool | operator== (const InetAddress &) const |
const std::string & | host () const |
unsigned long | address () const |
const std::string & | dot_address () const |
Static Public Member Functions | |
Dv::Util::ref< InetAddress > | by_name (const std::string &host) |
Factory method: return ref<InetAddress> corresponding with host or 0. | |
Dv::Util::ref< InetAddress > | by_address (unsigned long addr) |
Factory method: return ref<InetAddress> corresponding with addr or 0. | |
std::string | local_host () |
Private Member Functions | |
InetAddress (const char *, unsigned long, const char *) | |
Private constructor. | |
Private Attributes | |
std::string | host_ |
unsigned long | address_ |
std::string | dot_address_ |
Definition at line 100 of file inetaddress.h.
|
Private constructor.
|
|
Factory method: return ref<InetAddress> corresponding with host or 0.
Dv::Util::ref<InetAddress> address(InetAddress::Net::by_name("tinf2.vub.ac.be")); if (address) cout << address->dot_address() << endl; |
|
Factory method: return ref<InetAddress> corresponding with addr or 0.
|
|
|
|
References host_. |
|
References address_. |
|
References dot_address_. |
|
|
|
Definition at line 135 of file inetaddress.h. Referenced by host(). |
|
Definition at line 136 of file inetaddress.h. Referenced by address(). |
|
Definition at line 137 of file inetaddress.h. Referenced by dot_address(). |
dvnet-0.9.11 | [27 December, 2004] |