Skip to main content

1. OPEN

By invoking this operator, the user requests that the specified local socket be removed from the closed state and thus be prepared to participate in data transfer. There are three distinct operations that can be performed by this operator and these are described below:

(A) CONNECT​

By invoking this operator, the user requests that the specified local socket be logically connected to the specified foreign socket, and that transfer of data be enabled between the two sockets. Processing at the terminal is suspended until the foreign sockets either accepts or rejects the connection attempt. This operation is valid only when the local socket is in the closed state.

The key sequence is as follows:

UP Q1 Q2,Q3[,Q4] RETURN

where

  • Q1 is the completion code variable to be associated with the local socket.
  • Q2 is the socket number of the local socket.
  • Q3 is the socket number of the foreign socket.
  • Q4 is the site number of the foreign socket.

The following completion codes are possible for this operation:

CodeMeaning
0The operation was successful and the connection has been established
4The specified completion code variable is already assigned to a socket; the operation was suppressed
8The specified local socket is not in the closed state; the operation was suppressed
12All communication paths to the specified foreign site are in use; the operator was suppressed
16Local resources are insufficient to support another connection; the operation was suppressed
20The connection attempt was rejected by the foreign process
28The specified foreign site is invalid; the operation was suppressed
36Either hardware at the foreign site is inoperative or the NCP's counter-part at the foreign site does not exist or has failed
40Local and foreign sockets are both either send or receive sockets; the operation was suppressed
44By operator command, all Network operations were terminated; the socket will be closed
60An NCP control transmission error occurred; the operation as suppressed

(B) LISTEN​

This operation is a request for notification of any connection attempt directed toward the specified local socket. Processing at the terminal is suspended until such a call is received. This operation is valid only when the designated local socket is in the closed state.

The key sequence is as follows:

UP Q1 Q2 RETURN

where

  • Q1 is the completion code variable to be associated with the local socket.
  • Q2 is the socket number of the local socket.

The following completion codes are possible for this operation:

CodeMeaning
0The operation was successful and a call has been received
4The specified completion code variable is already assigned to a socket; the operation was suppressed
8The specified local socket is not in the closed state; the operation was suppressed
12Local resource are insufficient to support another connection; the operation was suppressed
44By operator command, all Network operations were terminated; the socket will be closed

(C) ACCEPT​

This operation accepts connection with the foreign socket whose call caused successful completion of a previous LISTEN operation by the specified local socket. After completion of this operation, data may be transferred to or from the local socket, depending on its gender. This operation is valid only when the last operation referencing the local socket as a LISTEN operation. Processing at the terminal is suspended until the operation is completed.

The key sequence is as follows:

UP Q RETURN

where

  • Q is the completion code variable associated with the local socket by a previous LISTEN operation.

The following completion codes are possible for this operation:

CodeMeaning
0The operation as successful, and the connection is established
4The specified local socket is in the closed state (the NCP may have received an abort notification from the foreign process); the operation was suppressed
8The previous operation specifying the designated local socket was not a LISTEN; the operation was suppressed
12All communication paths to the specified foreign site are in use; the socket has been returned to the closed state