예제 #1
0
        internal int rep_set_transport(int envid, BDB_RepTransportDelegate send)
        {
            int ret;

            ret = libdb_csharpPINVOKE.DB_ENV_rep_set_transport(swigCPtr, envid, send);
            DatabaseException.ThrowException(ret);
            return(ret);
        }
예제 #2
0
 internal int rep_set_transport(int envid, BDB_RepTransportDelegate send)
 {
     int ret;
     ret = libdb_csharpPINVOKE.DB_ENV_rep_set_transport(swigCPtr, envid, send);
     DatabaseException.ThrowException(ret);
     return ret;
 }
예제 #3
0
 public static extern int DB_ENV_rep_set_transport(HandleRef jarg1, int jarg2, BDB_RepTransportDelegate jarg3);
예제 #4
0
 /// <summary>
 /// Initialize the communication infrastructure for a database
 /// environment participating in a replicated application.
 /// </summary>
 /// <remarks>
 /// RepSetTransport 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.
 /// </remarks>
 /// <param name="envid">
 /// The local environment's ID. It must be a non-negative integer and
 /// uniquely identify this Berkeley DB database environment (see
 /// Replication environment IDs in the Programmer's Reference Guide for
 /// more information).
 /// </param>
 /// <param name="transport">
 /// The delegate used to transmit data using the replication
 /// application's communication infrastructure.
 /// </param>
 public void RepSetTransport(int envid,
     ReplicationTransportDelegate transport)
 {
     if (transport == null)
         dbenv.rep_set_transport(envid, null);
     else if (transportHandler == null) {
         if (doRepTransportRef == null)
             doRepTransportRef = new BDB_RepTransportDelegate(doRepTransport);
         dbenv.rep_set_transport(envid, doRepTransportRef);
     }
     transportHandler = transport;
 }