tupdemo data structures

The following table describes the data structures:

Structure

Description

ChkPntMsg

The checkpoint message structure transfers circuit state information from the primary application to the backup application:

typedef struct checkPointMsg
{
    U32    msgId;
    CirIdx cirId;         /* circuit ID of indicated circuit */
    CirIdx mateId;        /* circuit ID of mate circuit      */
    U16    state;         /* transient state indicator       */
    U16    callState;     /* call processing state           */
    U16    circuitState;  /* circuit blocking state          */
} ChkPntMsg;

Event

The event structure passes information between threads by passing a pointer to an event in the buffer member of a CTA_EVENT structure:

typedef struct
{
    TupRcvInfoBlk info;       /* TUP receive information block      */
    SiAllSdus     sdu;        /* union of all TUP event structures  */
    ChkPntMsg     chkPntMsg;  /* checkpoint message                 */
} Event;

Circuit

The circuit control structure maintains information required by the application to control a particular circuit:

typedef struct circuit
{
    CTAQUEUEHD ctaQueue;      /* CTA queue for receiving events       */
    CTAHD      ctaHndl;       /* CTA handle for this thread           */
    CirIdx     cirId;         /* circuit ID of this circuit           */
    CirIdx     mateId;        /* circuit ID for mate circuit          */
    U16        state;         /* thread state                         */
    U16        callState;     /* call processing state                */
    U16        circuitState;  /* circuit blocking state               */
 } Circuit;