36 #ifndef ASYNC_TCP_CLIENT_INCLUDED 37 #define ASYNC_TCP_CLIENT_INCLUDED 46 #include <sigc++/sigc++.h> 155 TcpClient(
const std::string& remote_host, uint16_t remote_port,
192 void connect(
const std::string &remote_host, uint16_t remote_port);
243 std::string remote_host;
248 void dnsResultsReady(
DnsLookup& dns_lookup);
249 void connectToRemote(
void);
250 void connectHandler(
FdWatch *watch);
A class for handling exiting TCP connections.
TcpClient(size_t recv_buf_len=DEFAULT_RECV_BUF_LEN)
Constructor.
static const int DEFAULT_RECV_BUF_LEN
The default length of the reception buffer.
bool isIdle(void) const
Check if the connection is idle.
A class for creating a TCP client connection.
void connect(void)
Connect to the remote host.
A class for watching file descriptors.
Contains a class for handling exiting TCP connections.
Namespace for the asynchronous programming classes.
void disconnect(void)
Disconnect from the remote host.
~TcpClient(void)
Destructor.
sigc::signal< void > connected
A signal that is emitted when a connection has been established.
A class for representing an IP address in an OS independent way.
void bind(const IpAddress &bind_ip)
Bind to the interface having the specified IP address.
A class for performing asynchronous DNS lookups.
bool isIdle(void) const
Check if the connection is idle.