SNAX/APC Application Programming Manual

Application Prototype Simulator
SNAX/APC Application Programming Manual138786
4-25
PREPARE-TO-RECEIVE (SF4)
PREPARE-TO-RECEIVE (SF4)
The PREPARE-TO-RECEIVE verb changes the conversation from the Send state to the
Receive state in preparation to receive data. The local TP (APS) must be in the Send
state to issue this verb request.
Request Fields
Type (SL,FL,CO)
specifies the type of the PREPARE-TO-RECEIVE request that you want to perform.
The different types are:
SL
specifies that the type of the PREPARE-TO-RECEIVE request to be performed
is to be based on the synchronization level specified for this conversation.
If the synchronization level is SYNCPT, the PREPARE-TO-RECEIVE will be
rejected. If the synchronization level is NONE (N), SNAX/APC transmits the
contents of the local LU’s send buffer to the partner TP and then places the
conversation in the Receive state. The PREPARE-TO-RECEIVE verb
completes as soon as the local LU’s send buffer is transmitted; no confirmation
is required. This is functionally equivalent to a PREPARE-TO-RECEIVE
request with request type set to FL (Flush).
If synchronization level is CONFIRM (C), SNAX/APC transmits the contents of
the local LU’s send buffer to the partner TP and then requests confirmation from
the partner TP. The PREPARE-TO-RECEIVE verb does not complete until the
partner TP responds to the request for confirmation. If the partner TP responds
to the request for confirmation affirmatively, the conversation is placed in the
Receive state. Otherwise, the return code indicates the new state of the
SNAX/APC Application Prototype Simulator (APS) System (T9096D30 15FEB95 21c)
Request: Prepare_To_Receive Resource ID: 1 0 0 1 0 0
Type (SL,FL,CO): FL
Locks (S) S
Reply: Prepare_To_Receive
IPC Return Code: 0 IPC Ok
IPC Return Code Detail: 0 IPC Ok
UOWs In: 0001 UOWs Out: 0001
Header Return Code: 0 RC Ok
Request Completed
F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16
TPR Aloc Deal TPE R&W RTS SD SE Cnf Cnfd GA Send Prnt Hex Rcov Exit
ActS Dact PRcv RcvI Flsh Gtyp GTP A(T) E(T) Exit