30 #ifndef ASYNC_TCP_CLIENT_BASE_INCLUDED
31 #define ASYNC_TCP_CLIENT_BASE_INCLUDED
40 #include <sigc++/sigc++.h>
147 uint16_t remote_port);
160 uint16_t remote_port);
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);
A class for handling exiting TCP connections.
A base class for creating a TCP client connection.
void bind(const IpAddress &bind_ip)
Bind to the interface having the specified IP address.
TcpClientBase(TcpConnection *con)
Constructor.
sigc::signal< void > connected
A signal that is emitted when a connection has been established.
A class for watching file descriptors.
Contains a class for handling exiting TCP connections.
void connect(void)
Connect to the remote host.
Namespace for the asynchronous programming classes.
void disconnect(void)
Disconnect from the remote host.
bool isIdle(void) const
Check if the connection is idle.
A class for representing an IP address in an OS independent way.
A class for performing asynchronous DNS lookups.
~TcpClientBase(void)
Destructor.