21 #ifndef XAPIAN_INCLUDED_REMOTETCPCLIENT_H
22 #define XAPIAN_INCLUDED_REMOTETCPCLIENT_H
27 # define SOCKET_INITIALIZER_MIXIN private WinsockInitializer,
29 # define SOCKET_INITIALIZER_MIXIN
53 static int open_socket(
const std::string & hostname,
int port,
54 double timeout_connect);
62 static std::string
get_tcpcontext(
const std::string & hostname,
int port);
77 double timeout_,
double timeout_connect,
bool writable,
RemoteDatabase is the baseclass for remote database implementations.
TCP/IP socket based RemoteDatabase implementation.
static int open_socket(const std::string &hostname, int port, double timeout_connect)
Attempt to open a TCP/IP socket connection to xapian-tcpsrv.
RemoteTcpClient(const RemoteTcpClient &)
Don't allow copying.
~RemoteTcpClient()
Destructor.
static std::string get_tcpcontext(const std::string &hostname, int port)
Get a context string for use when constructing Xapian::NetworkError.
void operator=(const RemoteTcpClient &)
Don't allow assignment.
RemoteTcpClient(const std::string &hostname, int port, double timeout_, double timeout_connect, bool writable, int flags)
Constructor.
TCP/IP replication client class.
RemoteDatabase is the baseclass for remote database implementations.