Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
GETPEERNAME z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference SC27-3660-00 |
|
Use the GETPEERNAME command to return the name of the remote peer that is connected to the socket. Parameters
Returned valueThis command returns a string that contains the return code and the name of the remote peer, for example, 0 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. For information about the format of the NAME string, see How structures are represented. See Socket call error return codes for additional information about the numeric error codes that are returned by this command. Returned valueThe following REXX TCP/IP error numbers can be returned:
The following REXX socket API error numbers can be returned:
LE C/C++ equivalent
Code exampleFigure 1. GETPEERNAME command
example
|
Copyright IBM Corporation 1990, 2014
|