Chops Net IP
Loading...
Searching...
No Matches
chops::net::detail::tcp_io Class Reference
Inheritance diagram for chops::net::detail::tcp_io:
Collaboration diagram for chops::net::detail::tcp_io:

Public Types

using endpoint_type = asio::ip::tcp::endpoint
 
using entity_notifier_cb = std::function<void (std::error_code, std::shared_ptr<tcp_io>)>
 

Public Member Functions

 tcp_io (asio::ip::tcp::socket sock, entity_notifier_cb cb) noexcept
 
template<typename F >
void visit_socket (F &&f)
 
output_queue_stats get_output_queue_stats () const noexcept
 
bool is_io_started () const noexcept
 
template<typename MH , typename MF >
bool start_io (std::size_t header_size, MH &&msg_handler, MF &&msg_frame)
 
template<typename MH >
bool start_io (std::size_t header_size, MH &&msg_handler, hdr_decoder_func func)
 
template<typename MH >
bool start_io (std::string_view delimiter, MH &&msg_handler)
 
template<typename MH >
bool start_io (std::size_t read_size, MH &&msg_handler)
 
bool start_io ()
 
bool stop_io ()
 
bool send (const chops::const_shared_buffer &buf)
 
bool send (const chops::const_shared_buffer &buf, const endpoint_type &)
 

The documentation for this class was generated from the following file: