SNAX/APC Application Programming Manual

Using the Application Program Interface
SNAX/APC Application Programming Manual138786
1-18
Local Target TP Example
The command and data flow assumes that the response to GET-TYPE indicates that a
basic conversation will be started. Programmers should note that if the type returned is
not what is expected, then some alternative action is required. Issue a DEALLOCATE
or MC-DEALLOCATE (ABEND PROG) request.
5. The local TP issues a RECEIVE-AND-WAIT verb request. (In Figure 1-5
, the
RECEIVE-AND-WAIT verb request is shown with FILL-BUFFER.)
6. Upon receiving a RECEIVE-AND-WAIT reply, the local TP should first check the
IPC-RETN-CODE field. If it contains ALL-UOWS-OK, the TP must then check
the REPLY-RETURN-CODE field in the RECEIVE-AND-WAIT reply. There are
two possibilities:
Figure 1-5. Data Flow Waiting for a Conversation
005CDT .CDD
Remote TPLocal TP
OPEN
TP-READY request
(LOCAL-ATTACH=N)
(DISPATCHED=N)
TP-READY reply
(RC=OK)
ALLOCATE request
ALLOCATE reply
SEND-DATA request
SEND-DATA reply
(RC=OK)
CONFIRM request
RECEIVE-AND-WAIT reply
(RC=OK)
(WHAT-RECEIVED=CONFIRM)
RECEIVE-AND-WAIT request
(FILL=FILL-BUFFER)
CONFIRM reply
CONFIRMED reply
CONFIRMED request
RECEIVE-AND-WAIT reply
(RC=OK)
(WHAT-RECEIVED=DATA)
RECEIVE-AND-WAIT request
(FILL=FILL-BUFFER)
GET-TYPE request
BASIC (example reply)
1
2
3
4
5
6