Chops Net IP
Loading...
Searching...
No Matches
chops::test::io_handler_mock Struct Reference

Public Types

using endpoint_type = asio::ip::udp::endpoint
 

Public Member Functions

bool is_io_started () const
 
template<typename F >
void visit_socket (F &&f)
 
chops::net::output_queue_stats get_output_queue_stats () const
 
bool send (chops::const_shared_buffer)
 
bool send (chops::const_shared_buffer, const endpoint_type &)
 
template<typename MH , typename MF >
bool start_io (std::size_t, MH &&, MF &&)
 
template<typename MH >
bool start_io (std::size_t, MH &&, chops::net::hdr_decoder_func)
 
template<typename MH >
bool start_io (std::string_view, MH &&)
 
template<typename MH >
bool start_io (std::size_t, MH &&)
 
template<typename MH >
bool start_io (const endpoint_type &, std::size_t, MH &&)
 
bool start_io ()
 
bool start_io (const endpoint_type &)
 
bool stop_io ()
 

Public Attributes

double mock_sock = 42.0
 
bool started = false
 
bool send_called = false
 
bool mf_sio_called = false
 
bool simple_var_len_sio_called = false
 
bool delim_sio_called = false
 
bool rd_sio_called = false
 
bool rd_endp_sio_called = false
 
bool send_sio_called = false
 
bool send_endp_sio_called = false
 

Static Public Attributes

static constexpr std::size_t qs_base = 42
 

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