Previous PageTable Of Contents../index.htmlIndexNext Page

cc_SndFrame( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_SndFrame(linedev, sndfrmptr)

Inputs:

LINEDEV linedev

  line device handle for the D channel

 

L2_BLK *sndfrmptr

  pointer to the transmit frame buffer

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

Data link layer handling

Mode:

synchronous

Technology:

BRI/SC; PRI (excluding Q.SIG)

Top Of PageDescription

The cc_SndFrame( ) function sends a frame to the data link layer. When the data link layer is successfully established, the application will receive a CCEV_D_CHAN_STATUS event. If the data link layer is not established before the function is called, the function will be returned with a value < 0 indicating function failure.

NOTE:
To enable Layer 2 access, set parameter number 24 to 01 in the firmware parameter file. When Layer 2 access is enabled, only the cc_GetFrame( ) and cc_SndFrame( ) functions can be used (no calls can be made).

Parameter

Description

linedev:

The line device handle for the D channel board.

sndfrmptr:

Pointer to the buffer containing the requested transmit frame. The transmit frame is stored in the L2_BLK data structure. For a description of the structure, see Section 6.7. L2_BLK. See the Example code for details.

Top Of PageCautions

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_SndFrame( ) 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