Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
GETCLIENTID z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference SC27-3660-00 |
|
Use the GETCLIENTID command to retrieve the client ID for the calling application. The client ID is the identifier by which the calling application is known to the TCP/IP address space. Tip: The client ID that is returned by the GETCLIENTID
command can be used with the GIVESOCKET and TAKESOCKET commands.
Format.-,--AF_INET-. >>-SOCKET--(--"GETCLIENTID"--+------------+--)----------------->< '-,--domain--' Parameters
Returned valueThe command returns a string that contains the return code and the application identifier. The return code can be 0 or the REXX API error number. The return code 0 indicates that the requested socket command was completed successfully. The application identifier has the following format:
The following examples show
what is returned for the specific address families:
See Socket call error return codes for additional information about the numeric error codes that are returned by this command. The following REXX socket API error numbers can be returned:
LE C/C++ equivalent
Code exampleFigure 1. GETCLIENTID command
example
|
Copyright IBM Corporation 1990, 2014
|