Dialogic 05-0867-005 Table Top Game User Manual


 
set the logical data link state cc_SetDLinkState( )
231
Parameter Description
bdev:
Board device handle for PRI, station device handle for BRI.
dlinkptr:
Pointer to the data link information block. See Section
6.4. DLINK for a description of the elements of this data
structure.
state_buf:
Pointer to the buffer containing the requested data link state
value. Possible data link states are:
DATA_LINK_UP - the firmware attempts to activate the
logical link if it is not already activated, and allows the
Network side to establish the logical link if requested.
DATA_LINK_DOWN - the firmware attempts to release the
logical link if it is currently established, and allows the
Network side to establish the logical link if requested.
DATA_LINK_DISABLED - the firmware attempts to release
the logical link if it is currently established. The firmware does
not allow the Network side to establish the logical link if
requested.
!
! !
!
Cautions
There needs to be a sufficient amount of time between bring down the data
link layer and bringing it up. This is necessary to allow time for the network
side to release its resources and declare the data link down before the network
side tries to reestablish the connection.
Although the cc_SetDLinkState( ) function can be used for PRI, it is
somewhat limited in scope. In PRI, after layer 2 is brought down
(DATA_LINK_DOWN state), the firmware will try to reestablish the link
after the timer expires.
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include "srllib.h"
#include "dtilib.h"
#include "cclib.h"
/* Global variables */