DB_CHANNEL->set_timeout()
#include <db.h>
int
DB_CHANNEL->set_timeout(DB_CHANNEL *channel, db_timeout_t timeout); The DB_CHANNEL->set_timeout() method sets the default timeout value for the DB_CHANNEL handle. This timeout is used by the DB_CHANNEL->send_request() method.
The DB_CHANNEL->set_timeout() method returns a non-zero error value on failure and 0 on success.
Parameters
timeout
Configures the amount of time that may elapse while the DB_CHANNEL->send_request() method waits for a message response. The timeout value must be specified as an unsigned 32-bit number of microseconds, limiting the maximum timeout to roughly 71 minutes.
Errors
The DB_CHANNEL->set_timeout() method may fail and return one of the following non-zero errors:
EINVAL
If this method is called from a Base API application, or if an invalid flag value or parameter was specified.