21 #ifndef XAPIAN_INCLUDED_REMOTETCPCLIENT_H
22 #define XAPIAN_INCLUDED_REMOTETCPCLIENT_H
28 #include <string_view>
31 # define SOCKET_INITIALIZER_MIXIN private WinsockInitializer,
33 # define SOCKET_INITIALIZER_MIXIN
61 static std::pair<int, std::string>
open_socket(std::string_view hostname,
63 double timeout_connect);
78 double timeout_,
double timeout_connect,
bool writable,
81 timeout_, writable, flags) { }
RemoteDatabase is the baseclass for remote database implementations.
TCP/IP socket based RemoteDatabase implementation.
static std::pair< int, std::string > open_socket(std::string_view 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.
RemoteTcpClient(std::string_view hostname, int port, double timeout_, double timeout_connect, bool writable, int flags)
Constructor.
void operator=(const RemoteTcpClient &)
Don't allow assignment.
TCP/IP replication client class.
RemoteDatabase is the baseclass for remote database implementations.
Socket handling utilities.