Previous PageTable Of Contents../index.htmlIndexNext Page

gl_listen( )

Description | Example | Error

Name:

int gl_listen (int chan, SC_TSINFOP *tsinfop)

Inputs:

int chan

  • Purpose: CP Fax SC channel.
  • Range: 1 -- n, where n is the number of installed fax channels.

SC_TSINFO * tsinfop

  • Purpose: Pointer to SCbus timeslots information structure.
  • Range: N/A.

Outputs:

GFQRECORD *qrec

  • A pointer to a queue record.

Returns:

0

  • Success.

-1

  • Error.

Includes:

gfsc.h

 

Top Of PageDescription

The gl_listen( ) function connects the fax channel to receive timeslot on SCbus

This function connects the receive data stream of a fax channel to a timeslot on the external SCbus. The SC_TSINFO structure contains two fields. The first field specifies the total number of SCbus timeslots to connect. The second field is a pointer to an array that contains the SCbus timeslots (from 1 and 1024) necessary to connect the receive data stream of the channel. If gl_listen( ) is called to establish a connection for a CP Fax SC fax channel that is already connected, the existing connection will be broken before the specified connection is established.

The SC_TSINFO structure is declared as follows:

Multiple fax channels may listen to a single SCbus timeslot, although the transmit data stream of a single SC channel can be connected to only one SCbus timeslot. The SC_TSINFO structure is used to provide uniformity among SCbus timeslot access functions for all SCSA devices.

Top Of PageExample

Top Of PageError


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2000, Dialogic Corporation
All rights reserved
This page generated January, 2002