class InetHostAddress
|
Address of a specific Internet host machine.
More... |
|
|
Public Methods
Public Members
This object is used to hold the actual and valid internet address of a
specific host machine that will be accessed through a socket.
InetHostAddress (const char *host = NULL)
| InetHostAddress |
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.
Defaults to the IP address that represents the interface matching
"gethostname()".
Parameters:
host | dns or physical address of an Internet host.
|
InetHostAddress (struct in_addr addr)
| InetHostAddress |
Convert a system socket binary address such as may be
returned through the accept() call or getsockpeer() into
an internet host address object.
Parameters:
addr | binary address of internet host.
|
InetAddress & operator= (unsigned long addr)
| operator= |
Allows assignment from the return of functions like
inet_addr() or htonl()
Reimplemented from InetAddress.
InetHostAddress & operator&= (const InetMaskAddress &mask)
| operator&= |
Mask the internet host address object with a network mask address.
This is commonly used to coerce an address by subnet.
friend class InetMaskAddress
| InetMaskAddress |
friend InetHostAddress operator& (const InetHostAddress &addr,
const InetMaskAddress &mask)
| operator& |
- Author: David Sugar
- Generated: dyfet on home on Fri Jan 4 18:52:16 2002, using kdoc 2.0a53.