class InetHostAddress
|
Address of a specific Internet host machine.
More... |
|
|
Public Members
Detailed Description
This object is used to hold the actual and valid internet address of a
specific host machine that will be accessed through a socket.
Create a new host address for the "local" host. This is set
to the IP address that represents the interface matching
"gethostname()".
InetHostAddress (const char *host)
|
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.
Parameters:
host | dns or physical address of an Internet host.
|
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.
Parameters:
addr | binary address of internet host.
|
Compare two internet host addresses to see if they are equal
(if they specify the physical address of the same internet host).
Compare two internet host addresses to see if they are not
equal (if they each refer to unique and different physical
ip addresses).
Mask the internet host address object with a network mask address.
This is commonly used to coerce an address by subnet.
- Author: David Sugar <dyfet@ostel.com>.
- Generated: dyfet@home.sys on Wed Mar 15 14:08:35 200.