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,
80 timeout_, get_tcpcontext(hostname, port),
87 #endif // XAPIAN_INCLUDED_REMOTETCPCLIENT_H RemoteTcpClient(const RemoteTcpClient &)
Don't allow copying.
RemoteDatabase is the baseclass for remote database implementations.
TCP/IP socket based RemoteDatabase implementation.
~RemoteTcpClient()
Destructor.
RemoteDatabase is the baseclass for remote database implementations.
void operator=(const RemoteTcpClient &)
Don't allow assignment.
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 std::string &hostname, int port, double timeout_, double timeout_connect, bool writable, int flags)
Constructor.
static std::string get_tcpcontext(const std::string &hostname, int port)
Get a context string for use when constructing Xapian::NetworkError.
TCP/IP replication client class.