virtual GPL_String GetHost(void) const
Return the name of the host machine.
virtual IP_PORT GetPort(void) const
Return the port number.
void SetHost(const IP_HOST_ADDRESS h)
Set the address to h.
void SetHost(const GPL_String & host)
Set the address to the address for host as determined by
GetHost().
void SetPort(const IP_PORT p)
Set the port to p.
void SetPort(const GPL_String & service, const GPL_String & protocol)
Set the port for the service, service and the protocol,
protocol.
virtual long Compare(DNA_Point *p) const
Return 0 if p points to an DNA_IPPoint object with the
same address.
static GPL_Boolean GetProtocol(const GPL_String & name, IP_PROTOCOL & protocol)
Put the protocol number for the protocol, name into protocol.
Return TRUE if the look-up succeeds and FALSE if it fails.
static GPL_Boolean GetPort(const GPL_String & service, const GPL_String & protocol, IP_PORT & port)
Put the port number for the combination of service and protocol
into port. Return TRUE if the look-up succeeds and
FALSE if it fails.
static GPL_Boolean GetService(const IP_PORT port, const GPL_String & protocol, GPL_String & service)
Put the service name for the combination of port and protocol
into service. Return TRUE if the look-up succeeds and
FALSE if it fails.
static GPL_Boolean GetHost(GPL_String & host)
Put the name of the local machine into host. Return TRUE if
the look-up succeeds and FALSE if it fails.
static GPL_Boolean GetHost(const IP_HOST_ADDRESS address, GPL_String & host)
Put the name of the machine for address into host. Return
TRUE if the look-up succeeds and FALSE if it fails.
static GPL_Boolean GetAddress(IP_HOST_ADDRESS & address)
Put the address for the local machine into address. Return
TRUE if the look-up succeeds and FALSE if it fails.
static GPL_Boolean GetAddress(const GPL_String & host, IP_HOST_ADDRESS & address)
Put the address for the machine host into address. Return
TRUE if the look-up succeeds and FALSE if it fails.
static GPL_Boolean UnaliasHost(const GPL_String & alias, GPL_String & host)
Put the unaliased name for the machine alias into host. Return
TRUE if the look-up succeeds and FALSE if it fails.
| SOCKET_HANDLE | The local platform socket handle type. |
| INVALID_SOCKET_HANDLE | The local platform value indicating an invalid socket handle. |
| IP_HOST_ADDRESS | The local platform IP host address type. |
| IP_SOCKET_ADDRESS | The local platform IP socket address type. |
| PTR_IP_SOCKET_ADDRESS | The local platform IP socket address pointer type. |
| IP_PROTOCOL | The local platform IP protocol type. |
| IP_PORT | The local platform IP port type. |
| DNA_EWOULDBLOCK | The local platform definition of an error code indicating
that a system call would block. |
| DNA_BEGIN_EINTR_LOOP | Begin a loop that is insensitive to interrupted system calls. |
| DNA_END_EINTR_LOOP | End a loop that is insensitive to interrupted system calls. |