52 virtual void connect(
const std::string& addr, std::uint32_t port, std::uint32_t timeout_msecs = 0) = 0;
59 virtual void disconnect(
bool wait_for_removal =
false) = 0;
std::vector< char > buffer
Definition: tcp_client_iface.hpp:133
virtual ~tcp_client_iface(void)=default
dtor
virtual bool is_connected(void) const =0
std::vector< char > buffer
Definition: tcp_client_iface.hpp:79
virtual void async_read(read_request &request)=0
Definition: tcp_client_iface.hpp:114
Definition: tcp_client_iface.hpp:85
virtual void connect(const std::string &addr, std::uint32_t port, std::uint32_t timeout_msecs=0)=0
std::function< void()> disconnection_handler_t
Definition: tcp_client_iface.hpp:160
virtual void disconnect(bool wait_for_removal=false)=0
std::function< void(write_result &)> async_write_callback_t
Definition: tcp_client_iface.hpp:108
std::size_t size
Definition: tcp_client_iface.hpp:118
async_write_callback_t async_write_callback
Definition: tcp_client_iface.hpp:138
virtual void async_write(write_request &request)=0
bool success
Definition: tcp_client_iface.hpp:74
std::function< void(read_result &)> async_read_callback_t
Definition: tcp_client_iface.hpp:102
bool success
Definition: tcp_client_iface.hpp:89
Definition: tcp_client_iface.hpp:37
Definition: tcp_client_iface.hpp:129
virtual void set_on_disconnection_handler(const disconnection_handler_t &disconnection_handler)=0
async_read_callback_t async_read_callback
Definition: tcp_client_iface.hpp:123
Definition: tcp_client_iface.hpp:70
std::size_t size
Definition: tcp_client_iface.hpp:94
tcp_client_iface(void)=default
ctor
Definition: array_builder.hpp:29