30 #ifndef ASYNC_TCP_CLIENT_BASE_INCLUDED
31 #define ASYNC_TCP_CLIENT_BASE_INCLUDED
40 #include <sigc++/sigc++.h>
146 TcpClientBase(TcpConnection *con,
const std::string& remote_host,
147 uint16_t remote_port);
159 TcpClientBase(TcpConnection *con,
const IpAddress& remote_ip,
160 uint16_t remote_port);
171 void bind(
const IpAddress& bind_ip);
183 void connect(
const std::string &remote_host, uint16_t remote_port);
222 bool isIdle(
void)
const {
return (sock == -1); }
234 std::string remote_host;
239 void dnsResultsReady(DnsLookup& dns_lookup);
240 void connectToRemote(
void);
241 void connectHandler(FdWatch *watch);