#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. | |
| ~ReplicateTcpServer () | |
| Destructor. | |
| void | handle_one_connection (int socket) |
| Handle a single connection on an already connected socket. | |
Private Attributes | |
| std::string | path |
| The path to pass to DatabaseMaster. | |
Definition at line 30 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 30 of file replicatetcpserver.cc.
| ReplicateTcpServer::~ReplicateTcpServer | ( | ) |
| 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 40 of file replicatetcpserver.cc.
References RemoteConnection::get_message(), path, and Xapian::DatabaseMaster::write_changesets_to_fd().
std::string ReplicateTcpServer::path [private] |
The path to pass to DatabaseMaster.
Definition at line 32 of file replicatetcpserver.h.
Referenced by handle_one_connection().