ReplicateTcpServer Class Reference

#include <replicatetcpserver.h>

Collaboration diagram for ReplicateTcpServer:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Definition at line 30 of file replicatetcpserver.h.


Constructor & Destructor Documentation

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

Construct a ReplicateTcpServer and start listening for connections.

Parameters:
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 (  ) 

Destructor.

Definition at line 36 of file replicatetcpserver.cc.


Member Function Documentation

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


Member Data Documentation

std::string ReplicateTcpServer::path [private]

The path to pass to DatabaseMaster.

Definition at line 32 of file replicatetcpserver.h.

Referenced by handle_one_connection().


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

Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.