Set addr = object.GetHost(address [, address_family])
Returns a new SocketAddress object
initialized with the address passed.
address - can be a string or an integer (long 4 byte)
value. The passed value can be an IP address or a DNS name. If it
is an IP the returned address object will be initialized with it.
If it is a DNS name a name lookup will be performed which may
result in an error if the lookup is unsuccessful.
You can pass for example:
"www.myserver.com" - a DNS name to be resolved
"192.168.1.12" - an IP to be packet in address
&HC0A8010C - an integer containing IP address to be
packed into an address object.
address_family - is by default AF_INET (2) and is the
only supported address family by this function in the current
version. IPV6 lookup requires WinSock 2 and because of it is not
implemented in this version of NetStreams.
this method you do not have to care about what you have IP or a
DNS name. The returned value will be IP address packed in a
SocketAddress object ready for further usage. IRDA devices lookup
requires certain limited resources and is implemented as option
query through the SocketStream object in order to avoid tempting
the developers write code that will involve more resources