The SockGetHostByName() call retrieves host information on a specific host using its name or any alias.
Syntax:
>>--SockGetHostByName(nameAddress, host)---------------------------------><
where:
is the name of a host, for example www.ibm.com.
is the name of a stem variable to receive the information on the host.
Return values:
The value 1 indicates successful execution of the call. The value 0 indicates an error.
Note: SockGetHostByName() interfaces with the C function gethostbyname().