OSI/TS Configuration and Management Manual

NonStop Kernel File-System Interface
OSI/TS Configuration and Management Manual424831-001
7-27
Application Manages the Response Protocol
Application Manages the Response Protocol
Your application can manage the response protocol. This procedure requires the
application to issue two separate calls: a WRITEREAD, followed by a WRITE
or a second WRITEREAD.
WRITEREAD Procedure
Use a WRITEREAD call to allow the OSI/TS subsystem to receive connection
requests. To manage the response protocol using WRITEREAD, your application
issues a call with the following syntax:
The first two octets of the buffer contain a 16-bit MCW. The MCW transfers
control information that tells OSI/TS to prepare to respond to incoming
connection requests. To indicate that the application is going to manage the
response protocol, insert the following values in the MCW:
Bit in MCWValueMeaning01Connection-establishment phase.10OSI/TS is
responder.21Application handles response protocol.3-150Reserved.
No data can be included in the buffer after the MCW. To allow for possible
incoming data, set read-count to 256. Figure 7-8
shows the contents of the
WRITEREAD buffer.
OSI/TS assigns the connection to your subdevice. If you opened the subdevice
in nowait mode, you must complete the WRITEREAD with a call to AWAITIO.
This completion corresponds to a T-CONNECT indication service primitive.
CALL WRITEREAD ( filenum, buffer, write-count, read-
count,
count-read [, tag ]
)
Bit in
MCW Value Meaning
0 1 Connection-establishment phase.
1 0 OSI/TS is responder.
2 1 Application handles response protocol.
3-15 0 Reserved.
Figure 7-8. WRITEREAD Buffer: Application Manages Response
708CDT .CDD
Octet 1
Octet 0
101
0
0
MCW