xapian-core  1.4.27
Public Member Functions | Private Attributes | List of all members
ReplicateTcpServer Class Reference

#include <replicatetcpserver.h>

+ Inheritance diagram for ReplicateTcpServer:
+ Collaboration diagram for ReplicateTcpServer:

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...
 

Detailed Description

Definition at line 28 of file replicatetcpserver.h.

Constructor & Destructor Documentation

◆ ReplicateTcpServer()

ReplicateTcpServer::ReplicateTcpServer ( const std::string &  host,
int  port,
const std::string &  path_ 
)

Construct a ReplicateTcpServer and start listening for connections.

Parameters
hostThe hostname or address for the interface to listen on (or "" to listen on all interfaces).
portThe 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::~ReplicateTcpServer ( )

Destructor.

Definition at line 37 of file replicatetcpserver.cc.

Member Function Documentation

◆ handle_one_connection()

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().

Member Data Documentation

◆ path

std::string ReplicateTcpServer::path
private

The path to pass to DatabaseMaster.

Definition at line 30 of file replicatetcpserver.h.

Referenced by handle_one_connection().


The documentation for this class was generated from the following files: