49 : sock_m{r,
nngxx::
rep::v0::make_socket().value_or_abort()}
50 , ctx_registry_m{r, sock_m}
69 ctx_registry_m.stop_all();
72 template<
template<
typename>
typename kind_of,
ev::event_c event_t,
80 template<
template<
typename>
typename kind_of,
ev::event_c event_t>
84 hf_registry_m.insert(sock_m.id(), std::move(hf));
rep(ev::hf_registry &h, ev::enqueuer &r)
Construct a rep.
const socket & sock() const
Get the socket.
void on(void(class_t::*hf)(ev::hf_arg< kind_of, event_t >), class_t *self)
socket & sock()
Get the socket.
void insert(ev::handler_f< kind_of, event_t > hf)
context_registry & ctxs()
Get the context_registry.
void stop()
Stop socket and all contexts.
Represents an nng_socket.
handler_f< kind_of, event_t > make_hf(mem_fn_t &mem_fn, class_t *self)
std::move_only_function< void(hf_arg< kind_of, event_t >)> handler_f
kind_of< event_t > hf_arg