Previous Topic: &SOCKET ACCEPT

Next Topic: &SOCKET CONNECT


&SOCKET CLOSE

Closes the socket specified by the socket ID.

&SOCKET CLOSE ID=socket_id

CLOSE indicates that the NCL process has finished using the socket.

Operands:

ID=socklet_id

(Mandatory) Specifies the identifier of the socket to be closed.

Examples:

&SOCKET CLOSE ID=&NSOCKID

Return Codes:

0

Close successful

8

Close failed; see &ZFDBK for reason code, &ZSOCERRN and &ZSOCVERR for further error information.

Notes:

Use &SOCKET CLOSE on sockets created by &SOCKET OPEN, CONNECT, and ACCEPT.

More information:

&SOCKET OPEN

&SOCKET CONNECT

&SOCKET ACCEPT