#include <socket.h>
Inheritance diagram for InetHostAddress:
Public Methods | |
InetHostAddress () | |
Create a new host address for the "local" host. More... | |
InetHostAddress (const char *host) | |
Create a new host address for a specific internet host. More... | |
InetHostAddress (struct in_addr addr) | |
Convert a system socket binary address such as may be returned through the accept() call or getsockpeer() into an internet host address object. More... | |
InetHostAddress& | operator &= (const InetMaskAddress &mask) |
Mask the internet host address object with a network mask address. More... | |
Friends | |
class | InetMaskAddress |
InetHostAddress | operator & (const InetHostAddress &addr, const InetMaskAddress &mask) |
|
Create a new host address for the "local" host. This is set to the IP address that represents the interface matching "gethostname()". |
|
Create a new host address for a specific internet host. The internet host can be specified in a null terminated ASCII string and include either the physical host address or the DNS name of a host machine. Hence, an InetHostAddress ("www.voxilla.org") can be directly declaired in this manner.
|
|
Convert a system socket binary address such as may be returned through the accept() call or getsockpeer() into an internet host address object.
|
|
Mask the internet host address object with a network mask address. This is commonly used to coerce an address by subnet. |
|
|
|
|