Stopping a TCP/IP/NJE Netserv communication to a NODE *CANCEL,netserv

Function

Use the *CANCEL,netserv,NODE=TCP command to stop communication by the specified netserv on all sockets. All active transmission and reception activity is allowed to complete before this command takes effect.

You should use the *CANCEL,TCP,NODE= command so that you don't need to determine the Netserv FCTs, which are used to communicate with the target node.

Syntax

Read syntax diagramSkip visual syntax diagram
>>---*CANCEL----,netserv--,NODE=--nodename--+----+-------------><
                                            '-,I-'   

Parameters

netserv
Specifies the target FCT.
NODE=nodename
Specifies the name of the node to be canceled. All sockets used for communication with the node will be canceled.
I
Specifies that the node is canceled immediately regardless of the state of any active transmission or reception.

Rules

  • The specified node must be active.
  • All active sockets, including server sockets, are canceled.

Results

  • The node that communicates with this node over the socket being canceled is notified that this node is signing off from the session.
  • If another node issued a *C,TCP,SOCKET=, or equivalent command, the corresponding socket on this node is marked inactive. If the socket is a server socket, it is automatically deleted as soon as it becomes inactive.
  • If the "I" parameter is not specified, the socket is canceled as soon as any transmission or reception currently active on the socket completes.
  • If the "I" parameter is specified, the socket is canceled immediately regardless of the state of any active transmission or reception.