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 |
|||||||||||||||||
The CLOSE macro shuts down the socket and frees the resources that are allocated to the socket. Issue the SHUTDOWN macro before you issue the CLOSE macro. CLOSE can also be issued by a concurrent server after it gives a socket to a subtask program. After issuing GIVESOCKET and receiving notification that the client child has successfully issued TAKESOCKET, the concurrent server issues the CLOSE macro to complete the transfer of ownership. Note: If a stream socket is closed while input or output
data is queued, the stream connection is reset and data transmission
can be incomplete. SETSOCKOPT can be used to set a SO_LINGER condition,
in which TCP⁄IP continues to send data for a specified period of time
after the CLOSE macro is issued. For information about SO_LINGER,
see SETSOCKOPT.
The following requirements apply to this call:
>>-EZASMI--TYPE=CLOSE--,S--=--+-number---+----------------------> +-address--+ +-*indaddr-+ '-(reg)----' >--,ERRNO--=--+-address--+--,RETCODE--=--+-address--+-----------> +-*indaddr-+ +-*indaddr-+ '-(reg)----' '-(reg)----' >--+---------------------------+--+-------------------------+---> +-,ECB--=--+-address--+-----+ '-,ERROR--=--+-address--+-' | +-*indaddr-+ | +-*indaddr-+ | '-(reg)----' | '-(reg)----' '-,REQAREA--=--+-address--+-' +-*indaddr-+ '-(reg)----' >--+------------------------+---------------------------------->< '-,TASK--=--+-address--+-' +-*indaddr-+ '-(reg)----'
|
Copyright IBM Corporation 1990, 2014
|