34 double timeout_connect)
37 string context{
"remote:tcp("};
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()
Destructor.
Hierarchy of classes which Xapian can throw as exceptions.
int open_socket(std::string_view hostname, int port, double timeout_connect, bool tcp_nodelay, const std::string &context)
Attempt to open a TCP/IP socket connection to a server.
string str(int value)
Convert int to std::string.
TCP/IP socket based RemoteDatabase implementation.
Convert types to std::string.
Open a TCP connection to a server.