gtpc2max | C/C++ Language Support User's Guide |
This function returns the current value of the sync_level
characteristic.
Format
#include <tpfmap.h>
void cmesl(unsigned char *conversation_ID,
signed int *sync_level,
signed int *return_code);
- conversation_ID
- This is a pointer to an 8-byte character array that contains the
conversation ID. This conversation ID must be the ID returned by the
cminit (INITIALIZE) or cmaccp (ACCEPT_CONVERSATION) that
started this conversation.
- sync_level
- This is a pointer to a 4-byte field where the current synchronization
level of the conversation will be placed. The possible values
are:
- return_code
- This is a pointer to a 4-byte field where the return code will be
placed.
Return Codes
The following is a list of return codes that can be returned to the program
that called the cmesl function. A complete list of the
return codes and their definitions can be found in Table 45.
- CM_OK
- CM_PROGRAM_PARAMETER_CHECK -- The specified conversation_ID
is invalid.
Programming Considerations
- You can execute this function on any I-stream.
- The conversation can be in any state.
- The value supplied in conversation_ID must be the conversation ID
returned by the cmaccp or cminit function.
- This function does not modify the sync_level
characteristic.
- If return_code is not CM_OK, sync_level does not return
a meaningful value.
Examples
The following example gets the synchronization level for the
conversation.
#include <tpfmap.h>
unsigned char convid[8];
signed int sync;
signed int rcode;
.
.
/* set conversation_ID with value returned from accept or initialize */
.
.
cmesl(convid,&sync,&rcode);
. /* normal processing path */
.
.
Related Information