Previous PageTable Of Contents../index.htmlIndexNext Page

fx_sendascii( )

Description | Cautions | Example | Source Code | Errors | See Also

Name:

int fx_sendascii(faxname, phdcont)

Inputs:

char * faxname

ASCII filename

unsigned short phdcont

Phase D continuation value

Returns:

0 if success

-1 if failure

Includes:

srllib.h

dxxxlib.h

faxlib.h

Category:

send fax

Mode:

synchronous

 

Top Of PageDescription

The fx_sendascii( ) function allows an application to send a single ASCII file at the default width, length, resolution, fonts and margins for ASCII data. For default ASCII information, see Section 7.3. DF_ASCIIDATA -- ASCII Data Description on page 101.

This function is a convenience function and resides in faxconv.c. The fx_sendascii( ) function calls fx_sendfax( ) (see source code for fx_sendascii( )). The fx_sendfax( ) function reference contains information on Phase D continuation values, status information and file error handling that applies to fx_sendascii( ).

The encoding scheme used in transmitting fax data varies by product; for more information see Section 2.4. Key Product Features on page 8. The preferred encoding scheme for transmission is determined by the value set in the FC_TXCODING parameter in fx_setparm( ).

 

Parameter

Description

faxname

Specifies the name of the ASCII file to send.

phdcont

Specifies the Phase D continuation value. This value defines the action to take at the end of the current DF_IOTT structure after the transfer of fax data. Valid values:

DFC_EOP

End of Procedure (T.30).
Terminate current fax session; progress to Phase E; and disconnect fax call.

DFC_MPS

Multi-Page Signal (T.30).
End of current fax document page; next page is in same format as the current page; proceed directly to Phase C.

DFC_EOM

End of Message (T.30).
End of current fax document page; more fax data to follow at different resolution or width; return to Phase B and negotiate parameters for next fax document page.

Top Of PageCautions

Top Of PageExample

Top Of PageSource Code for fx_sendascii( )

Top Of PageErrors

See Appendix D for a list of common error codes that may be returned for this function.

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