Skip to main content

4. RECEIVE

This operation causes data to be received from the foreign socket. Processing at the terminal is suspended until the data sent by the foreign socket has been received by the local socket and processed.

The possible key sequences are as follows:

LOAD  Q1
LOAD +Q1
LOAD -Q1 Q2, Q3 RETURN
LOAD .Q1 Q4 RETURN

where

  • Q1 is the completion code variable associated with the local socket.
  • Q2 is a positive integer, or a LO storage location, less then 256.
  • Q3 is a positive integer, or a LO storage location, less than 65536.
  • Q4 is a positive integer less than 5.

If Q1 is the first key after LOAD, one or more standard messages will be received and executed. The data may or may not be executed, as soon as it is received, depending on the op code. Processing of manual keypushes is suspended until a trailer is received. If Q1 is preceded by a '+', the operation is as above, except that only one message, with no trailer, is received, and the operation is only performed if there is data queued for the local socket, ready to be received. ('LOAD +' is intended mainly for use with the Network On-Line Interface.) If Q1 is preceded by a '-', a string of text whose length, in bits, is Q3, is received and processed according to the op code Q2. If a '.' precedes Q1, Q4 bytes of data are read and placed, right justified, in the LO accumulator.

The following completion codes are possible for this operation:

CodeMeaning
0The operation was successful and the data has been received
4The specified local socket is not a receive socket; the operation was suppressed
8The specified completion code variable is not assigned to a socket; the operation was suppressed
12A previous receive operation is in progres; the operation was suppressed
16The connection is not fully open; the operation was suppressed
20The foreign socket terminated the connection before completion of the receive operation; data is unpredictable
36Either hardware at the foreign site is inoperative, or the NCP's counterpart at the foreign site does not exist or has failed
44By operator command, all Network operations were terminated; the socket will be closed
52One or more interrupts were received from the foreign socket; the operation was suppressed
60An NCP control transmission error occurred; the operation was suppressed and the socket will be closed
200There was no data queued for the local socket; the operation was suppressed (applicable only to 'LOAD +')