36 #ifndef ASYNC_TCP_CLIENT_INCLUDED 37 #define ASYNC_TCP_CLIENT_INCLUDED 46 #include <sigc++/sigc++.h> 130 template <
typename ConT=TcpConnection>
144 explicit TcpClient(
size_t recv_buf_len = ConT::DEFAULT_RECV_BUF_LEN)
159 TcpClient(
const std::string& remote_host, uint16_t remote_port,
160 size_t recv_buf_len = ConT::DEFAULT_RECV_BUF_LEN)
161 : ConT(recv_buf_len),
TcpClientBase(this, remote_host, remote_port)
176 size_t recv_buf_len = ConT::DEFAULT_RECV_BUF_LEN)
177 : ConT(recv_buf_len),
TcpClientBase(this, remote_ip, remote_port)
bool isIdle(void) const
Check if the connection is idle.
A base class for creating a TCP client connection.
Contains a base class for creating TCP client connections.
bool isIdle(void) const
Check if the connection is idle.
A class for creating a TCP client connection.
TcpClient(const std::string &remote_host, uint16_t remote_port, size_t recv_buf_len=ConT::DEFAULT_RECV_BUF_LEN)
Constructor.
TcpClient(size_t recv_buf_len=ConT::DEFAULT_RECV_BUF_LEN)
Constructor.
~TcpClient(void)
Destructor.
Namespace for the asynchronous programming classes.
void disconnect(void)
Disconnect from the remote host.
A class for representing an IP address in an OS independent way.
virtual void disconnect(void)
Disconnect from the remote host.
TcpClient(const IpAddress &remote_ip, uint16_t remote_port, size_t recv_buf_len=ConT::DEFAULT_RECV_BUF_LEN)
Constructor.