Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
CLOSE z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference SC27-3660-00 |
|
Use the CLOSE command to close a socket and release the resources that are associated with the socket descriptor. If the socket descriptor is a connected stream socket, the connection to the remote host is also closed. If a connected stream socket is closed but has input data still pending on the socket, the CLOSE command causes the connection to be reset. Parameters
Returned valueThe 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. 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 numbers can be returned:
The following REXX socket API error numbers can be returned:
LE C/C++ equivalent
Code exampleFigure 1. CLOSE command example
|
Copyright IBM Corporation 1990, 2014
|