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

Concepts
Confirmation Processing
Chapter 1 41
Establishing the Synchronization Level
The synchronization level is one of the conversation's characteristics.
There are two possible synchronization levels:
CM_NONE, the default, under which confirmation processing does not
occur
CM_CONFIRM, under which the programs can request confirmation of
receipt of data and respond to such requests
The default synchronization level is CM_NONE; you can override this using
the Set_Sync_Level call.
Sending a Confirmation Request
Issuing the Confirm call does the following:
It flushes the local LU's send buffer (which sends any data contained
in the buffer to the partner program)
It sends a confirmation request, which the partner program receives
through the
status_received
parameter of a Receive call
After issuing the Confirm call, the invoking program waits for
confirmation from the invoked program.
Receiving a Confirmation Request
The
status_received
parameter of the Receive call indicates any future
action required by the local program.
Receive
(
status_received
=CM_CONFIRM_DEALLOC_RECEIVED)
Confirmed
(
return_code
=CM_OK)
Table 1-3 Confirmation Processing (Continued)
Invoking Program Invoked Program