Previous PageTable Of Contents../index.htmlIndexNext Page

dx_setuio( )

Description | Cautions | Example | Errors

Name:

int dx_setuio(uioblk)

Inputs:

uioblk

  DX_UIO structure

Returns:

0 if success

 

-1 if failure

Includes:

srllib.h

 

dxxxlib.h

Category:

miscellaneous function

Top Of PageDescription

The dx_setuio( ) function allows an application to install a user I/O routine read( ), write( ), and lseek( ) functions. These functions are then used by the dx_play( ) and dx_rec( ) functions to read and/or write to nonstandard storage media.

The application provides the addresses of user-defined read( ), write( ) and, optionally, lseek( ) functions by initializing the DX_UIO structure. The application then installs the functions by invoking the dx_setuio( ) function.

The application can override the standard I/O functions on a file-by-file basis by setting the IO_UIO flag in the io_type field of the DX_IOTT structure (see the chapter on Data Structures for details).

NOTE:
The IO_UIO flag must be ORed with the IO_DEV flag for this feature to function properly.

When using the dx_setuio( ) function to record, a user-defined write( ) function must be provided. User-defined read( ) and lseek( ) functions are optional.

When using the dx_setuio( ) function to play, a user-defined read( ) function must be provided. User-defined write( ) and lseek( ) functions are optional.

Top Of PageCautions

In order for the application to work properly, the user-provided functions MUST conform to standard I/O function semantics.

Top Of PageExample

Top Of PageErrors

None.


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

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