DB_ENV->rep_get_timeout()

#include <db.h>

int
DB_ENV->rep_get_timeout(DB_ENV *env, int which, u_int32_t *timeoutp);  

The DB_ENV->rep_get_timeout() method returns the timeout value for the specified which parameter. Timeout values can be managed using the DB_ENV->rep_set_timeout() method.

The DB_ENV->rep_get_timeout() method may be called at any time during the life of the application.

The DB_ENV->rep_get_timeout() method returns a non-zero error value on failure and 0 on success.

Parameters

which

The which parameter is the timeout for which the value is being returned. See the DB_ENV->rep_set_timeout() method for a list of timeouts that you can provide to this parameter.

timeoutp

The timeoutp parameter references memory into which the timeout value of the specified which parameter is copied.

The returned timeout value is in microseconds.

Errors

The DB_ENV->rep_get_timeout() method may fail and return one of the following non-zero errors:

EINVAL

An invalid flag value or parameter was specified.

Class

DB_ENV

See Also

Replication and Related Methods, DB_ENV->rep_set_timeout()