Skip to main content

3. SEND

This operation caused data to be sent to the foreign socket. Processing at the terminal is suspended until the data has been received by the foreign socket, or until it has been queued locally by the NCP.

The possible key sequence are as follows:

STORE  Q1 Q2 text Q2
STORE +Q1 Q2 text Q2
STORE -Q1 Q2 text Q2
STORE .Q1[X]Q3 RETURN

where

  • Q1 is the completion code variable associated with the local socket.
  • Q2 is any key except RESET.
  • 'Text' is a string of any length of any keys except Q2 and RESET.
  • Q3 is an unsigned integer. If it is preceded by 'X', the integer is assumed to be in hexadecimal. [X]Q3 should have a value less then 256.

If Q1 is the first key after STORE, the keys comprising 'text' are not executed but rather are sent as a one byte code per key, in one or more standard messages. They are preceded by a header with the op code which indicates keys to be executed as soon as they are received, and followed by a trailer. If a '+' precedes Q1, the headers and the text will be sent, but no trailer. If a '-' precedes Q1, only the text will be sent. If a '.' precedes Q1, [X]Q3 will be sent as a one byte number, with no header or trailer.

The following completion codes are possible for this operation:

CodeMeaning
0The operation was successful, and the data has been sent
4The specified local socket is not a send socket; the operation was suppressed
8The specified completion code variable is not assigned to a socket; the operation was suppressed
12A previous send operation is in progress; the operation was suppressed
16The connection is not fully open; the operation was suppressed
20The foreign socket terminated the connection before completion of the send operation; not all the data was transmitted
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 aborted and the socket will be closed
64A transmission error occurred; the operation was aborted and the socket will be closed