Skip to main content

5. CHECK

This operation causes the status of the specified local socket to be displayed. There is no completion code variable associated with this operation, since it is always successful and the socket is identified by its socket number. This operation is valid at any time, and with one exception, noted below, is always completed immediately.

The possible key sequences are as follows:

DISPLAY (Q RETURN...)...
DISPLAY (Q?)...
DISPLAY RETURN...

where

  • Q is the socket number of the local socket whose status is to be displayed.

Successive RETURN'S will display the status of local sockets with successively higher socket numbers, and once DISPLAY has been pushed, it need not be pushed for subsequent occurrences of Q.

If Q is followed by a '?', processing at the terminal will be suspended until the socket is not in the closed state, at which time the status will be displayed. If the socket is not closed at the time the '?' is pushed, response is as if the '?' were a RETURN.

If DISPLAY is followed immediately by a RETURN, the status of all non-closed sockets owned by the terminal is displayed, each preceded by its associated completion code variable. If this information is more than will fit on one tube, successive RETURN'S will display the remainder of the information.

The status has the following format:

'lclno' 'mnem' 'fgnsite' 'fgnno' 'deficit'

where

  • 'lclno' is the socket number of the local socket.
  • 'mnem' is a mnemonic of up to eight characters for the status.
  • 'fgnsite' is the site number of the foreign socket, or blank.
  • 'fgnno' is the socket number of the foreign socket, or blank.
  • 'deficit' is the send/receive deficit in the form 'bytes.bits', or blank.

Following are the possible mnemonics, together with their interpretations:

MNEMMeaning
OPENA connection is fully established. No SEND/RECEIVE operation is in progress. 'fgnsite' and 'fgnno' are the site number and the socket number of the connected socket. 'deficit' is the number of bits queued locally at the socket by the NCP and available to satisfy a future RECEIVE operation, or awaiting output as the result of a previous SEND operation.
LISTENA LISTEN has been issued.
CONNECTA CONNECT has been issued. 'fngsite' and 'fgnno' are the site and socket numbers of the foreign socket.
DECISIONA LISTEN has been completed. 'fgnsite' and 'fgnno' are the site and socket numbers of the calling socket.
CALL(S)One or more calls have been received for the local socket. No LISTEN or CONNECT has been issued.
I/OA connection is fully established. A SEND/RECEIVE operation is in progress. 'fgnsite' and 'fgnno' are the site and socket numbers of the connected socket. 'deficit' is the number of bits yet to be sent or received.
CLOSEDThe socket is in the closed state.
<--DRAINThe foreign socket is attempting to close the connection. The NCP has data yet to be read by the local socket. 'fgnsite' and 'fgnno' are the site and socket numbers of the connected socket. 'deficit' is the number of bits yet to be received.
DRAINEDThe foreign socket is attempting to close the connection. The NCP is awaiting arrival at the foreign site of data currently in transit. 'fgnsite' and 'fgnno' are the site and socket numbers of the connected socket.
CLOSINGThe local socket has issued a CLOSE. The NCP is in the process of returning the local socket to the closed state. 'fgnsite' and 'fgnno' are the site and socket numbers of the connected socket.
DRAIN-->The local socket has issued a CLOSE. The NCP is completing the last SEND operation before returning the local socket to the closed state. 'fgnsite' and 'fgnno' are the site and socket numbers of the connected socket. 'deficit' is the number of bits the NCP has yet to transmit.