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

CPI-C Calls
Set_Processing_Mode (cmspm)
Chapter 3278
End of Section The processing mode affects all subsequent CPI-C calls. It can be
changed by issuing the Set_Processing_Mode call again.
Function Call
void cmspm (
unsigned char CM_PTR conversation_ID,
CM_INT32 CM_PTR processing_mode,
CM_RETURN_CODE CM_PTR return_code
);
Supplied Parameters
The supplied parameters are:
conversation_ID
This is the identifier for the conversation. The value of
this parameter is returned by the
Initialize_Conversation or Accept_Conversation call.
processing_mode
This parameter specifies whether subsequent CPI-C
calls will be executed in blocking or nonblocking mode.
Possible values are:
CM_BLOCKING Subsequent CPI-C calls will not
return until the operation is
complete.
CM_NON_BLOCKING Subsequent CPI-C calls will return
immediately after the operation is
initiated, whether or not it has
completed.
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.
return_code
Possible values are:
CM_OK The call executed successfully.
CM_PROGRAM_PARAMETER_CHECK The value specified by
the
processing_mode
or
conversation_ID
parameter is not
valid.