Previous PageTable Of Contents../index.htmlIndexNext Page

dt_listen( )

Description | Cautions | Example | Errors | See Also

Name:

int dt_listen(devh,sc_tsinfop)

Inputs:

int devh

  Digital Network Interface device handle

 

SC_TSINFO *sc_tsinfop

  pointer to SCbus time slot information structure

Returns:

0 on success
-1 if error

Includes:

srllib.h
dtilib.h

Category:

SCbus Routing

Mode:

synchronous

Top Of PageDescription

The dt_listen( ) function connects the digital listen channel to the SCbus time slot. This function uses the information stored in the SC_TSINFO structure to connect the digital receive (listen) channel (T-1/E-1 time slot) such as on a D/240SC-T1 or D/300SC-E1 board to an SCbus time slot. This function sets up a half-duplex connection. For a full-duplex connection, the receive (listen) channel of the other device must be connected to the digital transmit channel.

NOTE:
The SCbus convenience function nr_scroute( ) includes dt_listen( ) functionality. See the SCbus Routing Guide for more information on convenience functions.

Parameter

Description

devh:

Specifies the valid Digital Network Interface time slot device handle returned by a call to dt_open( )

sc_tsinfop:

Specifies the pointer to the SC_TSINFO data structure

The SC_TSINFO structure is declared as follows:

The sc_numts member of the SC_TSINFO structure must be set to 1. The sc_tsarrayp field of the SC_TSINFO structure must be initialized with a pointer to a valid array. The first element of this array must contain a valid SCbus time slot number (between 0 and 1023) which was obtained by issuing an xx_getxmitslot( ) function (xx = ag, dt, dx or fx). Upon return from the dt_listen( ) function, the digital receive channel will be connected to this time slot.

Although multiple SCbus device channels may listen (be connected) to the same SCbus time slot, a digital receive (listen) channel can connect to only one SCbus time slot.

Top Of PageCautions

This function will fail under the following conditions:

Top Of PageExample

Top Of PageErrors

If the function returns -1, use the SRL Standard Attribute function ATDV_LASTERR( ) to obtain the error code or use ATDV_ERRMSGP( ) to obtain a descriptive error message. The error codes returned by ATDV_LASTERR( ) are:

Top Of PageSee Also

In the SCbus Routing Function Reference:


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

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