TcpClient Namespace Reference


Functions

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.

Function Documentation

int TcpClient::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.

Connect to the server running on port port of host hostname. Give up trying to connect after timeout_connect seconds.

Definition at line 46 of file tcpclient.cc.

References close_fd_or_socket(), socket_errno, and SOCKLEN_T.


Documentation for Xapian (version 1.2.13).
Generated on 9 Jan 2013 by Doxygen 1.5.9.