pub unsafe extern "C" fn c4repl_newWithSocket(
db: *mut C4Database,
openSocket: *mut C4Socket,
params: C4ReplicatorParameters,
outError: *mut C4Error,
) -> *mut C4ReplicatorExpand description
Creates a new replicator from an already-open C4Socket. This is for use by listeners
that accept incoming connections, wrap them by calling c4socket_fromNative(), then
start a passive replication to service them.
@param db The local database.
@param openSocket An already-created C4Socket.
@param params Replication parameters. Will usually use kC4Passive modes.
@param outError Error, if replication can’t be created.
@return The newly created replicator, or NULL on error.