User`s guide

68 DC 900-1406E
BSCTRAN Programmer’s Guide
lconfig This is a pointer to a data structure to receive link configuration/sta-
tus. The data structure is defined by the following C typedef (refer to
the
BSCTRAN.INC include file):
typedef struct /* LINK CONFIGURATION REPORT */
{
short lactive; /* Local link active status */
/* Start buffer report */
short msgsize; /* ICP message buffer size */
short msgfree; /* # free ICP msg buffers */
short msgtot; /* Total # ICP msg buffers */
short xmtsize; /* Transmit message buffer size */
short xmtfree; /* # free ICP transmit buffers */
short xmttot; /* Total # ICP transmit buffers */
short linktot; /* Total # of links */
/* Start statistics report */
short rcv_bcc; /* BCC errors received */
short rcv_par; /* Parity errors received */
short rcv_orun; /* Receive overrun errors */
short rcv_buf; /* Buffer errors (on receive) */
short snd_msg; /* Data messages sent */
short rcv_msg; /* Data messages received */
short snd_nak; /* NAKs sent */
short rcv_nak; /* NAKs received */
short snd_buf; /* Buffer errors (on send) */
short reserved; /* Reserved */
short snd_blks; /* Transmission blocks sent */
short rcv_blks; /* Transmission blocks received */
short size; /* Size of config report */
short config[CNPARTOT * 2]; /* Option/value pairs */
} CONFRPT;
where CNPARTOT is equal to the total number of BSC configuration
parameters.
clear_stats This is a longword containing the boolean flag. If the flag is 1, a Clear
Statistics command (command code 4) is sent to the ICP for link
(
lnum).