#include <address.h>
Inheritance diagram for ost::IPV4Host::
Public Methods | |
IPV4Host (const char *host=NULL) | |
Create a new host address for a specific internet host. More... | |
IPV4Host (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... | |
IPV4Address& | operator= (unsigned long addr) |
Allows assignment from the return of functions like inet_addr() or htonl(). More... | |
IPV4Host& | operator &= (const IPV4Mask &mask) |
Mask the internet host address object with a network mask address. More... | |
Friends | |
class __EXPORT | IPV4Mask |
__EXPORT IPV4Host | operator & (const IPV4Host &addr, const IPV4Mask &mask) |
|
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 IPV4Host ("www.voxilla.org") can be directly declaired in this manner. Defaults to the IP address that represents the interface matching "gethostname()".
|
|
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. |
|
Allows assignment from the return of functions like inet_addr() or htonl().
Reimplemented from ost::IPV4Address. |
|
|
|
|