gtpc2maxC/C++ Language Support User's Guide

cmesl-Extract the Sync Level

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.

Programming Considerations

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