34 double timeout_connect)
51 string result(
"remote:tcp(");
Open a TCP connection to a server.
Indicates a timeout expired while communicating with a remote database.
const std::string & get_msg() const
Message giving details of the error, intended for human consumption.
Convert types to std::string.
TCP/IP socket based RemoteDatabase implementation.
Hierarchy of classes which Xapian can throw as exceptions.
~RemoteTcpClient()
Destructor.
string str(int value)
Convert int to std::string.
int open_socket(const std::string &hostname, int port, double timeout_connect, bool tcp_nodelay)
Attempt to open a TCP/IP socket connection to a server.
const char * get_error_string() const
Returns any system error string associated with this exception.
Indicates a problem communicating with a remote database.
static int open_socket(const std::string &hostname, int port, double timeout_connect)
Attempt to open a TCP/IP socket connection to xapian-tcpsrv.
static std::string get_tcpcontext(const std::string &hostname, int port)
Get a context string for use when constructing Xapian::NetworkError.