36 #ifndef ASYNC_TCP_CLIENT_INCLUDED
37 #define ASYNC_TCP_CLIENT_INCLUDED
46 #include <sigc++/sigc++.h>
143 TcpClient(
const std::string& remote_host, uint16_t remote_port,
180 std::string remote_host;
181 uint16_t remote_port;
185 void dnsResultsReady(
DnsLookup& dns_lookup);
186 void connectToRemote(
const IpAddress& ip_addr);
187 void connectHandler(
FdWatch *watch);
A class for handling exiting TCP connections.
SigC::Signal0< void > connected
A signal that is emitted when a connection has been established.
static const int DEFAULT_RECV_BUF_LEN
The default length of the reception buffer.
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.
void disconnect(void)
Disconnect from the remote host.
~TcpClient(void)
Destructor.
A class for representing an IP address in an OS independent way.
A class for performing asynchronous DNS lookups.
TcpClient(const std::string &remote_host, uint16_t remote_port, size_t recv_buf_len=DEFAULT_RECV_BUF_LEN)
Constructor.