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

Writing CPI-C Applications
CPI-C Call Summary
Chapter 2 67
Allocate (cmallc)
This call is issued by the invoking program to allocate a conversation
with the partner program, using the current conversation
characteristics. The type of conversation allocated depends on the
conversation type characteristic (mapped or basic).
Accept_Conversation (cmaccp)
This call is issued by the invoked program to accept the incoming
conversation and set certain conversation characteristics. Upon
successful execution of this call, CPI-C generates and returns a
conversation identifier. Accept_Conversation always operates in blocking
mode.
Accept_Incoming (cmacci)
For Unix This call is issued by the invoked program to accept an incoming
conversation for which it previously issued Initialize_For_Incoming. It is
similar to Accept_Conversation, but can operate in nonblocking mode if
required (Accept_Conversation always operates in blocking mode).
End of Section Sending data
The following calls are used to send data to the partner program.
Set_Send_Type (cmsst)
This call sets the conversation's send type. The send type specifies how
data will be sent by the Send_Data call. The Send_Data call can include
the function of the Flush, Confirm, Prepare_To_Receive, or Deallocate
call (equivalent to issuing Send_Data, followed by the other call), or it
can simply send data without performing any other function. The send
type value affects all subsequent Send_Data calls. It can be changed by
issuing the Set_Send_Type call again.
Send_Data (cmsend)
This call puts data in the local LU's send buffer for transmission to the
partner program.