xapian-core
1.4.27
|
#include <replicatetcpserver.h>
Public Member Functions | |
ReplicateTcpServer (const std::string &host, int port, const std::string &path_) | |
Construct a ReplicateTcpServer and start listening for connections. More... | |
~ReplicateTcpServer () | |
Destructor. More... | |
void | handle_one_connection (int socket) |
Handle a single connection on an already connected socket. More... | |
Private Attributes | |
std::string | path |
The path to pass to DatabaseMaster. More... | |
Definition at line 28 of file replicatetcpserver.h.
ReplicateTcpServer::ReplicateTcpServer | ( | const std::string & | host, |
int | port, | ||
const std::string & | path_ | ||
) |
Construct a ReplicateTcpServer and start listening for connections.
host | The hostname or address for the interface to listen on (or "" to listen on all interfaces). |
port | The TCP port number to listen on. |
path_ | The path to the parent directory of the databases. |
Definition at line 31 of file replicatetcpserver.cc.
ReplicateTcpServer::~ReplicateTcpServer | ( | ) |
Destructor.
Definition at line 37 of file replicatetcpserver.cc.
void ReplicateTcpServer::handle_one_connection | ( | int | socket | ) |
Handle a single connection on an already connected socket.
This method may be called by multiple threads.
Definition at line 41 of file replicatetcpserver.cc.
References RemoteConnection::get_message(), path, and Xapian::DatabaseMaster::write_changesets_to_fd().
|
private |
The path to pass to DatabaseMaster.
Definition at line 30 of file replicatetcpserver.h.
Referenced by handle_one_connection().