OSI/TS Configuration and Management Manual

NonStop Kernel File-System Interface
OSI/TS Configuration and Management Manual424831-001
7-38
WRITE Procedure or WRITEREAD Procedure
WRITE Procedure or WRITEREAD Procedure
You must use a WRITE or a WRITEREAD call if you wish to transfer data
during the release phase. Issue a call similar to one of the following:
Place a 16-bit MCW in the first two octets of the write buffer. OSI/TS
interprets the MCW as follows:
You can place up to 64 octets of data in the buffer after the MCW. Figure 7-17
shows the contents of the buffer.
When the OSI/TS subsystem receives the WRITE or WRITEREAD call, it
transmits a DR-TPDU. It completes the request when it receives a DC-TPDU.
If there are outstanding requests against the subdevice when you initiate
connection release, OSI/TS completes them by issuing file-system error 140.
Remote Release
In classes 1, 2, 3, and 4, when OSI/TS receives a DR-TPDU, it transmits a DC-
TPDU and an N-DISCONNECT request. A transport connection is also released
if OSI/TS receives an ER-TPDU from the remote peer. In either case, OSI/TS
signals your application by completing all outstanding requests by issuing file-
system error 140. Issue SETPARAM 10 to retrieve the cause of the disconnect
and any data that might have arrived with the disconnect request.
CALL WRITE ( filenum, buffer, write-count );
or
CALL WRITEREAD ( filenum, buffer, write-count );
Bit MCW Value Meaning
0-3 0 Reserved
4 1 Release request
5-15 0 Reserved
Figure 7-16. WRITE or WRITEREAD Buffer: Connection Release
716CDT .CDD
Octet 1
Octet 0
Octet 2
Through
Octet n
0
0
MCW
Data
0 0 0 1 0