Previous PageTable Of Contents../index.htmlIndexNext Page

ATFX_STATE( )

Description | Example | Errors

Name:

long ATFX_STATE(dev)

Inputs:

int dev

fax channel device handle

Returns:

current state of fax channel device if successful

AT_FAILURE if invalid fax channel device handle specified

Includes:

srllib.h

dxxxlib.h

faxlib.h

Category:

extended attribute

Mode:

synchronous

 

Top Of PageDescription

The ATFX_STATE( ) function returns the current state of the fax channel device specified in dev.

The function parameter is defined as follows:

 

Parameter

Description

dev

Specifies the valid fax channel device handle obtained when the fax channel was opened.

This function returns one of the following values indicating the current state of the channel:

CS_IDLE

fax channel is idle

CS_SENDFAX

fax channel is transmitting (fx_sendfax( ) active)

CS_RECVFAX

fax channel is receiving (fx_rcvfax( ) or fx_rcvfax2( ) active)

CS_FAXIO

fax channel is between pages OR when send or receive functions have returned but the fax session is still active

NOTE:
A fax device channel is idle when no I/O is active on the channel.

Top Of PageExample

Top Of PageErrors

This function fails and returns AT_FAILURE if an invalid fax channel device handle is specified in dev.


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Intel Corporation
All rights reserved
This page generated February, 2002