HP-UX SNAplus2 CPI-C Programmer's Guide (June 2003)

CPI-C Calls
Set_Prepare_To_Receive_Type (cmsptr)
Chapter 3 275
CM_PREP_TO_RECEIVE_CONFIRM This value sends the
partner program the contents of the
LU's send buffer and a confirmation
request.Uponreceiptof confirmation,
the conversation changes to Receive
state.
CM_PREP_TO_RECEIVE_FLUSH This value sends the
partner program the contents of the
local LU's send buffer and changes
the conversation to Receive state.
CM_PREP_TO_RECEIVE_SYNC_LEVEL Thisvalue uses the
conversation's synchronization level
to determine prepare-to-receive
processing.A default synchronization
level is established by the
Initialize_Conversation call and can
be overridden by the Set_Sync_Level
call.
If the synchronization level of the
conversation is set to the default,
CM_NONE, the contents of the local
LU's send buffer are sent to the
partner program and the
conversation changes to Receive
state.
If the synchronization level of the
conversation is CM_CONFIRM, the
contents of the local LU's send buffer
and a request for confirmation are
sent to the partner program. The
conversation changes to Receive state
when the partner program issues the
Confirmed call, responding to the
confirmation request.
Returned Parameters
After the verb executes, SNAplus2 returns parameters to indicate
whether the execution was successful and, if not, to indicate the reason
the execution was unsuccessful.