SNAX/APC Application Programming Manual

Using the Application Program Interface
SNAX/APC Application Programming Manual138786
1-15
Local Source TP Example
FMH-5 message sent to the remote LU, indicating the name of the remote TP with
which the local TP wants to communicate.)
5. The remote LU processes the ATTACH request and associates it with the remote TP.
When the local TP receives the ALLOCATE reply, it can begin to send data to the
remote TP, using the SEND-DATA verb.
Another Way of Looking at the Same Dataflow
Figure 1-3 illustrates the same process.
The example shows the use of multiple UOWs in a single IPC (see Step 3) sent from the
local TP. The remote TP, in Receive state, merely issues a series of RECEIVE-AND-
WAIT verbs.
Figure 1-3. Data Flow for Initiating a Conversation
Note. The side labeled “Remote TP” includes functions provided by the partner LU and
the remote TP whereas the center of the figure shows data flows to and from the local
LU. Assume that the remote TP has already issued the equivalent of TP-READY.
003CDT .CDD
Remote TPLocal TP
ALLOCATE reply
(RC=OK)
SEND-DATA reply
(RC=OK)
DEALLOCATE reply
(RC=OK)
OPEN
TP-READY request
(LOCAL-ATTACH=Y)
(DISPATCHED=N)
TP-READY reply
(RC=OK)
RECEIVE-AND-WAIT request
ALLOCATE
SEND-DATA
DEALLOCATE
RECEIVE-AND-WAIT reply
(RC=DEALLOCATE-NORMAL)
RECEIVE-AND-WAIT reply
(RC=OK)
(WHAT-RECEIVED=DATA-COMPLETE)
RECEIVE-AND-WAIT request
1
2
3
4