DB_ENV->set_rpc_server API Ref

#include <db.h>

int DB_ENV->set_rpc_server(DB_ENV *dbenv, CLIENT *client, char *host, long cl_timeout, long sv_timeout, u_int32_t flags);


Description: DB_ENV->set_rpc_server

Establishes a connection for this dbenv to a RPC server.

When the DB_ENV->set_rpc_server method has been called, subsequent calls to Berkeley DB library interfaces may return or throw exceptions encapsulating DB_NOSERVER, DB_NOSERVER_ID, or DB_NOSERVER_HOME.

The DB_ENV->set_rpc_server method configures operations performed using the specified DB_ENV handle, not all operations performed on the underlying database environment.

The DB_ENV->set_rpc_server method may not be called after the DB_ENV->open method is called.

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

Parameters
cl_timeout client host flags sv_timeout

Errors

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


EINVAL


Class DB_ENV
See Also Database Environments and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.