dbsetbusy

Description

Call a user-supplied function when DB-Library is reading from the server.

Syntax

void dbsetbusy(dbproc, busyfunc)
 
DBPROCESS     *dbproc;
int                        *(*busyfunc)())();

Parameters

dbproc

A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.

busyfunc

The user-supplied function that DB-Library will call whenever it accesses the server. DB-Library calls busyfunc() with a single parameter—a pointer to the DBPROCESS from the dbsetbusy call.

busyfunc() returns a pointer to a function that returns an integer.

Returns

None.

Usage

See also

dbsetidle