DbEnv::rep_set_transport API Ref

#include <db_cxx.h>

int DbEnv::rep_set_transport(int envid, int (*send)(DB_ENV *dbenv, const Dbt *control, const Dbt *rec, const DbLsn *lsnp, int envid, u_int32_t flags));


Description: DbEnv::rep_set_transport

The DbEnv::rep_set_transport method initializes the communication infrastructure for a database environment participating in a replicated application.

The DbEnv::rep_set_transport method is not called by most replication applications. It should only be called by applications implementing their own network transport layer, explicitly holding replication group elections and handling replication messages outside of the replication manager framework.

The DbEnv::rep_set_transport method configures operations performed using the specified DbEnv handle, not all operations performed on the underlying database environment.

The DbEnv::rep_set_transport method may be called at any time during the life of the application.

The DbEnv::rep_set_transport 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
envid send

Errors

The DbEnv::rep_set_transport 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 Replication and Related Methods

APIRef

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