3. Send
This program causes data to be sent to the foreign socket. The subprogram will wait until the data has been received by the foreign socket, or until it has been queued locally by the NCP.
The calling sequence is as follows:
CALL WRITE (cmpcd, bfr, len, time [,offset])
Where
'cmpcd' is the completion code variable associated with the local socket.
'bfr' is the data to be sent, and can be of any type, any length.
'len' is the number of bits of data to be sent. If 'len' is non-positive, no operation is performed. 'len' is of type INTEGER*4.
'time' is the length of time the subprogram is to wait for the completion of the operation.
'offset' is the bit offset from the first bit of 'bfr' at which data transmission is to begin, and is of type INTEGER*4. If not specified, 'offset' defaults to zero.
The following completion codes are possible for this operation:
0, The operation was successful, and the data has been sent
4, The specified local socket is not a send socket; the operation was suppressed
8, The specified completion code variable is not assigned to a socket; the operation was suppressed
12, A previous send operation is in progress; the operation was suppressed
16, The connection is not fully open; the operation was suppressed
20, The foreign socket terminated the connection before completion of the send operation; not all the data was transmitted
36, Either hardware at the foreign site is inoperative, or the NCP's counterpart at the foreign site does not exist or has failed
44, By operator command, all Network operations were terminated; the socket will be closed
52, One or more interrupts were received from the foreign socket; the operation was suppressed
56, An addressing exception was encountered with respect to the data buffer; the operation was suppressed
60, An NCP control transmission error occurred; the operation was aborted and the socket will be closed
64, A transmission error occurred; the operation was aborted and the socket will be closed
252, The specified time limit was exceeded; the operation was initiated but not completed