The Accept_Conversation call (function name cmaccp) is issued by the invoked program to accept the incoming conversation and set certain conversation characteristics. For a list of initial conversation characteristics, see Initial Conversation Characteristics.
CM_ENTRY Accept_Conversation(
unsigned char FAR *conversation_ID,
CM_INT32 FAR *return_code
);
The conversation must be in RESET state when Accept_Conversation is issued.
If the call is successful, the conversation changes to RECEIVE state. If the call fails, the state remains unchanged.
Upon successful execution of this call, CPI-C generates an 8-byte conversation identifier. This identifier is a required parameter for all other CPI-C calls issued by the invoked program on this conversation.
Incoming conversations will be accepted according to the target TP name that they specify, which must match local TP names that have been set up. Local TP names can be set up by implementation-dependent methods, or by the program calling Specify_Local_TP_Name. In this way, a program can have more than one local TP name. The program can call Extract_TP_Name to discover the name specified on the incoming conversation.
The operation is performed in nonblocking mode if the program has called Specify_Local_TP_Name previously; otherwise it is performed in blocking mode.