Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetDLinkState( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_GetDLinkState(bdev, dlinkptr, state_buf)

Inputs:

LINEDEV bdev

  device handle

 

DLINK *dlinkptr

  pointer to data link information block

 

int *state_buf

  pointer to location of D channel state

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

System tools

Mode:

synchronous

Technology:

BRI/2; BRI/SC; PRI (all protocols)

Top Of PageDescription

The cc_GetDLinkState( ) function retrieves the logical data link state (operable, inoperable or disabled) of the specified board device for PRI or station device for BRI.

Parameter

Description

bdev:

Board device handle for PRI, station device handle for BRI.

dlinkptr:

Pointer to the data link information block (DLINK). See Section 6.4. DLINK for a definition of the data link information block data structure. See the Example code for details.

state_buf:

Pointer to the buffer containing the requested data link state value. Possible data link states are:

 

DATA_LINK_UP

channel layer 2 is operable

 

DATA_LINK_DOWN

channel layer 2 is inoperable

 

DATA_LINK_DISABLED

channel layer 2 was disabled and cannot be reestablished

Top Of PageCautions

None

Top Of PageExample

Top Of PageErrors

If the function returns a value < 0 to indicate failure, use the cc_CauseValue( ) function to retrieve the reason code for the failure. The cc_ResultMsg( ) function can be used to interpret the reason code. Error codes are defined in the files ccerr.h, isdnerr.h, and isdncmd.h.

Error codes from the cc_GetDLinkState( ) function include the following:

Error Code

Description

ERR_ISDN_LIB|E_ISBADIF

Bad interface number

ERR_ISDN_LIB|E_ISNOMEM

Cannot map or allocate memory

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated December, 2001