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

Concepts
Confirmation Processing
Chapter 140
Confirmation Processing
When a program sends data to its partner program, it can also request
the partner program to confirm that it has received the data successfully.
The receiving program must either confirm receipt of the data or indicate
that an error has occurred. The two programs are synchronized each
time they exchange a confirmation request and response. This is
illustrated in Table 1-3, “Confirmation Processing.
Table 1-3 Confirmation Processing
Invoking Program Invoked Program
Initialize_Conversation
Set_Sync_Level
(
sync_level
=CM_CONFIRM)
Allocate
Send_Data
Confirm
Accept_Conversation
Receive
(
data_received
=CM_COMPLETE_DATA_RECEIVED)
(
status_received
=CM_CONFIRM_RECEIVED)
Confirmed
(
return_code
=CM_OK)
Send_Data
Deallocate