isupdemo data structures

The following data structures are called by isupdemo:

Structure

Description

ChkPntMsg

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

typedef struct checkPointMsg
{
    U32   msgId;
    CirId cirId;       /* circuit ID of indicated circuit */
    CirId mateId;      /* circuit ID of mate circuit      */
    U8    transient;   /* transient state indicator       */
    U8    callState;   /* call processing state           */
    U8    blkState;    /* 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
{
    IsupRcvInfoBlk info;       /* ISUP receive information block     */
    SiAllSdus      sdu;        /* union of all ISUP 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
{
    S16        state;      /* thread state                         */
    CTAQUEUEHD ctaQueue;   /* CTA queue for receiving events       */
    CTAHD      ctaHndl;    /* CTA handle for this thread           */
    CirId      cirId;      /* circuit ID of this circuit           */
    CirId      mateId;     /* circuit ID for mate circuit          */
    SuId       suId;       /* service user ID                      */
    SiInstId   suInstId;   /* service user instance ID             */
    SiInstId   spInstId;   /* service provider instance ID         */
    U8         callState;  /* call processing state                */
    U8         blkState;   /* circuit blocking state               */
    U8         transient;  /* transient state indicator            */
} Circuit;