21 #ifndef XAPIAN_INCLUDED_REPLICATETCPCLIENT_H
22 #define XAPIAN_INCLUDED_REPLICATETCPCLIENT_H
30 # define SOCKET_INITIALIZER_MIXIN : private WinsockInitializer
32 # define SOCKET_INITIALIZER_MIXIN
59 static int open_socket(
const std::string & hostname,
int port,
60 double timeout_connect);
72 double timeout_connect,
double socket_timeout);
75 const std::string & remotedb,
77 double reader_close_time,
RemoteConnection which owns its own fd(s).
TCP/IP replication client class.
void operator=(const ReplicateTcpClient &)
Don't allow assignment.
ReplicateTcpClient(const ReplicateTcpClient &)
Don't allow copying.
static int open_socket(const std::string &hostname, int port, double timeout_connect)
Attempt to open a TCP/IP socket connection to a replication server.
ReplicateTcpClient(const std::string &hostname, int port, double timeout_connect, double socket_timeout)
Constructor.
~ReplicateTcpClient()
Destructor.
void update_from_master(const std::string &path, const std::string &remotedb, Xapian::ReplicationInfo &info, double reader_close_time, bool force_copy)
OwnedRemoteConnection remconn
Write-only connection to the server.
RemoteConnection class used by the remote backend.
Replication support for Xapian databases.
Information about the steps involved in performing a replication.
Define XAPIAN_VISIBILITY_* macros.
#define XAPIAN_VISIBILITY_DEFAULT