In your fax application, you may want to replace standard I/O functions lseek( ), read( ) and write( ) with your own I/O functions.
To register user-defined I/O functions, set up a DF_UIO structure with pointers to the application's own seek, read and write functions. Call fx_setuio( ) to register the functions with the fax library. The fax library stores the pointers to the user-defined seek, read and write functions and calls them with the same arguments as it would call the standard I/O seek and read functions.
For user-defined I/O functions to access fax data, set the IO_UIO bit in the io_type field of the DF_IOTT structure. The io_fhandle field of the DF_IOTT structure specifies the file descriptor passed to the functions.
User-defined I/O functions are called only for the DF_IOTT table entries with IO_UIO bit set in io_type. For all other DF_IOTT table entries, the standard I/O functions are used.
For more information on the DF_UIO structure, see Section 7.7. DF_UIO -- User-Defined I/O on page 115.
Click here to contact Dialogic Customer Engineering
Copyright 2002, Intel Corporation