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