(Page 8 of 15 in this chapter) Version
{ /* User accessible CONTEXT INFO structure: */
DWORD size; /* Returned size of this structure */
DWORD queueid; /* Not used in CT Access */
DWORD userid; /* Not used in CT Access */
DWORD channel; /* BX 2000 channel */
DWORD board; /* BX 2000 board number */
DWORD stream; /* MVIP stream of this port */
DWORD timeslot; /* MVIP slot of this port */
DWORD mode; /* MVIP mode of operation of this port */
/* (not used) */
DWORD maxbufsize; /* Maximum board buffer size (not used) */
DWORD state; /* Port state */
DWORD stream95; /* MVIP-95 base stream number (not used) */
char tcpname[12]; /* Current protocol */
} BRI_CONTEXT_INFO;
int myShowContextState( CTAHD ctahd )
{
BRI_CONTEXT_INFO info;
if( briGetContextInfo( ctahd, &info, sizeof info ) != SUCCESS )
return MYFAILURE;
printf( " Queue ID = %d\n", info.queueid );
printf( " User ID = %08Xh\n", info.userid );
printf( " Protocol = %s\n", info.tcpname );
printf( " Board Number = %d\n", info.board );
printf( "Stream:Slot = %d:%d", info.stream, info.timeslot );
printf("\n");
return SUCCESS;
}
(Page 8 of 15 in this chapter) Version