33 : TcpServer(host, port,
false,
false), path(path_)
46 string start_revision;
47 if (client.
get_message(start_revision, 0.0) !=
'R') {
56 if (dbname.find(
"..") != string::npos) {
A RemoteConnection object provides a bidirectional connection to another RemoteConnection object on a...
RemoteConnection class used by the remote backend.
int get_message(std::string &result, double end_time)
Read one message from fdin.
Access to a master database for replication.
std::string path
The path to pass to DatabaseMaster.
void handle_one_connection(int socket)
Handle a single connection on an already connected socket.
~ReplicateTcpServer()
Destructor.
Hierarchy of classes which Xapian can throw as exceptions.
ReplicateTcpServer(const std::string &host, int port, const std::string &path_)
Construct a ReplicateTcpServer and start listening for connections.
Replication support for Xapian databases.
Indicates a problem communicating with a remote database.
void write_changesets_to_fd(int fd, const std::string &start_revision, ReplicationInfo *info) const
Write a set of changesets for upgrading the database to a file.
TCP/IP replication server class.