HostAddress (class)
Constructors:
HostAddress(const char* Name=0, ENetwork Network=eIPv4);
HostAddress(HostAddress& Address);
General Description: Class to manage the host identification.
Methods
void SetPort(int Port); Set the port number.
int GetPort(void) const; Get the port number.
ENetwork GetNetwork(void) const; Get the network type.
struct sockaddr* GetAddress(void) const; Get the actual socket address.
int GetSize(void) const; Get socket address size.
int ==(HostAddress& Address) const; Compare if equal.
int !=(HostAddress& Address) const; Compare if not equal.
const char* GetHost(bool byName=1); Retrieve the hostname.
Exceptions Thrown
Exception, NetConversionException, NetDNSException,