June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db.h> int db_env_create(DB_ENV **dbenvp, u_int32_t flags);
The db_env_create function creates a DB_ENV structure that is the handle for a Berkeley DB environment. A pointer to this structure is returned in the memory referenced by dbenvp.
The flags parameter must be set to 0 or the following value:
DB_CLIENT Create a client environment to connect to a server.
The DB_CLIENT flag indicates to the system that this environment is remote on a server. The use of this flag causes the environment methods to use functions that call a server instead of local functions. Prior to making any environment or database method calls, the application must call the DBENV→set_server function to establish the connection to the ...