Chops Net IP
Loading...
Searching...
No Matches
chops::net::detail::net_entity_common< IOT > Class Template Reference

Public Types

using io_state_chg_cb
 
using error_cb
 

Public Member Functions

bool is_started () const noexcept
 
bool is_stopped () const noexcept
 
void set_stopped () noexcept
 
template<typename F1 , typename F2 , typename SF >
std::error_code start (F1 &&io_state_chg_func, F2 &&err_func, const asio::any_io_executor &exec, SF &&start_func)
 
template<typename SF >
std::error_code stop (const asio::any_io_executor &exec, SF &&stop_func)
 
void call_io_state_chg_cb (std::shared_ptr< IOT > p, std::size_t sz, bool starting)
 
void call_error_cb (std::shared_ptr< IOT > p, const std::error_code &err)
 

Member Typedef Documentation

◆ error_cb

template<typename IOT >
using chops::net::detail::net_entity_common< IOT >::error_cb
Initial value:
std::function<void (basic_io_interface<IOT>, std::error_code)>

◆ io_state_chg_cb

template<typename IOT >
using chops::net::detail::net_entity_common< IOT >::io_state_chg_cb
Initial value:
std::function<void (basic_io_interface<IOT>, std::size_t, bool)>

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