DbEnv::set_rpc_server API Ref

#include <db_cxx.h>

int DbEnv::set_rpc_server(CLIENT *client, char *host, long cl_timeout, long sv_timeout, u_int32_t flags);


Description: DbEnv::set_rpc_server

Establishes a connection for this dbenv to a RPC server.

When the DbEnv::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 DbEnv::set_rpc_server method configures operations performed using the specified DbEnv handle, not all operations performed on the underlying database environment.

The DbEnv::set_rpc_server method may not be called after the DbEnv::open method is called.

The DbEnv::set_rpc_server method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

Parameters
cl_timeout client host flags sv_timeout

Errors

The DbEnv::set_rpc_server method may fail and throw DbException, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:


EINVAL


Class DbEnv
See Also Database Environments and Related Methods

APIRef

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