The following table shows the parameters required for each CPI-C verb and the permissible values when used with BEA Connect SNA.
Table C-1 CMINIT
conversation_ID
Output
Returned by the SNA Stack
Used on every other call
sym_dest_name
Input
Symbolic name that represents the partner LU, the modename, and the TP (TUXEDO service)
If blank, SET calls must be made to initialize conversation parameters
return code
See list of CPI-C return codes
If not CM_OK, conversation fails.
Value returned from CMINIT
return_code
If not CM_OK, or CM_ALLOCATION_FAILURE_RETRY, conversation fails
buffer
Name of variable to be populated by data received
requested_length
Name of variable where amount of data to be received is posted
0 <= requested_length < 32K
data_received
CM_COMPLETE
CM_INCOMPLETE
Indicates enough data in LU buffer to satisfy requested length
Another CMRCV must be issued to get enough data to satisfy the requested length
received-length
Name of variable where amount of data returned is posted
Returned data may be shorter than requested amount including zero
status_received
CM_NO_STATUS
CM_SEND_RECEIVED
No state change.
State of the conversation is changed to send
request_to_send_received
CM_REQ_TO_SEND_ RECEIVED
CM_REQ_TO_SEND_ NOT_RECEIVED
Receiver enters send state.
Partner has not requested a state change
If not CM_OK or CM_DEALLOCATE_NORMAL, the conversation is deallocated.
Name of buffer area containing data to be sent
send_length
Length of data in buffer to be sent
0 <= data < 32K
req_to_send_received
The name of the variable that contains the indication that indicates CM_REQ_TO_SEND_ RECEIVED
Partner request to change state to send
If not CM_OK, the conversation is deallocated
conversation _ID
Returned from the LU
If not CM_OK, the accept fails and no conversation is started