Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
RESOLVE z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference SC27-3660-00 |
|
Use the RESOLVE command to resolve a host name or an IP address. Format.-,--30------. >>-SOCKET--(--"RESOLVE"--,--+-ipaddress----+--+------------+--)->< +-hostname-----+ '-,--timeout-' '-fullhostname-' Parameters
Returned valueThe command returns a string that contains the return code, the IP address, and the host name. The return code can be 0, a REXX socket API error number, or the REXX TCP/IP error number that is set by the socket command. The return code 0 indicates that the requested socket command was completed successfully. The
following string is an example of what is returned by the RESOLVE
command:
In
the example, 0 is the return code, 10.201.202.1 is the host IP address,
and BOB01.THEWORLD.COM is the host name.See Socket call error return codes for additional information about the numeric error codes that are returned by this command. The following REXX TCP/IP error number can be returned:
The following REXX socket API error numbers can be returned:
LE C/C++ equivalentThis command has no LE C/C++ equivalent. Code exampleFigure 1. RESOLVE command example
|
Copyright IBM Corporation 1990, 2014
|