Previous PageTable Of Contents../index.htmlIndexNext Page

fx_rcvfax2( )

Description | Cautions | Example | Errors | See Also

Name:

int fx_rcvfax2(dev, fd, rcvflag)

Inputs:

int dev

fax channel device handle (to receive fax data)

int fd

receive file descriptor

unsigned long rcvflag

mode flag

Returns:

0 if success (on invocation in asynchronous mode)

-1 if failure (on invocation in asynchronous mode)

Includes:

srllib.h

dxxxlib.h

faxlib.h

Category:

receive fax

Mode:

synchronous/asynchronous

 

Top Of PageDescription

The fx_rcvfax2( ) function receives fax data (file descriptor argument) from an open channel device and stores it as a TIFF/F file or a raw file.

NOTE:
A raw file stores fax data as a single page of unstructured, unformatted data.

The fx_rcvfax2( ) function can be issued by the fax receiver or the fax transmitter. To stop a fax reception in progress, use fx_stopch( ).

The encoding scheme in which the incoming fax data may be stored (MH and/or MMR) is based on the capability of the Dialogic fax product. For product capabilities, see Section 2.4. Key Product Features on page 8.

The fx_rcvfax2( ) function uses a file descriptor argument (fd) to specify the receive file instead of a file name as in the fx_rcvfax( ) function.

To receive a fax using user-definable I/O functions, you must issue fx_rcvfax2( ) and logically "OR" the IO_UIO bit in the rcvflag argument.

For more information on setting up the channel device to receive fax data, see Chapter 5. Implementing Fax Capability -- Receive Fax.

 

Parameter

Description

dev

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

fd

Specifies the file descriptor.

rcvflag

The rcvflag field is a logical OR bit mask. See the fx_rcvfax( ) function for rcvflag field values.

Top Of PageCautions

Top Of PageExample

Top Of PageErrors

In synchronous mode, this function returns a zero to indicate successful completion or a -1 to indicate an error.

In asynchronous mode, this function returns a zero to indicate successful invocation or a -1 to indicate an invocation error.

Errors that occur during reception generate a Standard Runtime Library event (TFX_FAXERROR). To access the Dialogic defined error code, call the Dialogic standard attribute functions ATDV_LASTERR( ) and ATDV_ERRMSGP( ). The latter returns a string describing the error (see the Voice Software Reference - Programmer's Guide). See Appendix D for a list of Dialogic defined fax error codes.

If the fx_rcvfax2( ) function successfully completes, a TFX_FAXRECV Dialogic Standard Runtime Library event is generated.

The fax extended attribute ATFX_ESTAT( )) provides additional error information for T.30 Phase E fax protocol.

System errors return an EDX_SYSTEM error; use dx_fileerrno( ) to obtain error value. Refer to the dx_fileerrno( ) function in the Voice Software Reference - Programmer's Guide for a list of the possible system error values.

Top Of PageSee Also


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