OSI/TS Configuration and Management Manual

NonStop Kernel File-System Interface
OSI/TS Configuration and Management Manual424831-001
7-35
Preparing to Receive Data
If you use a WRITEREAD call to send data, OSI/TS handles your request as a
WRITE call followed by a READ call. Two distinct MCWs are used for this
procedure:
When you issue a WRITEREAD call, place an input MCW in the first two
octets of your buffer. OSI/TS interprets this buffer as explained above.
OSI/TS completes your request when it receives a data TPDU from the
remote peer. The input buffer contains an MCW, followed by remote user
data. You interpret this input MCW as described in the next subsection.
If write-count is greater than the RECEIVESIZE parameter defined for the
TSP process, file-system error 21 is returned.
Preparing to Receive Data
To receive incoming data from the OSI/TS subsystem, your application must
have an outstanding READ (or WRITEREAD) call. Issue a call with the
following syntax:
Figure 7-14. WRITE Buffer: Outgoing Data
Note. The MCW must be included in read-count and write-count.
CALL READ ( filenum, buffer, read-count );
714CDT .CDD
Octet 1
Octet 0
Octet 2
Through
Octet n
0
0
MCW
Outgoing Data
X
Y
X = 0 Normal
X = 1 Expedited
Y = 0 Data Completed
Y = 1 More Data to Follow
Legend