48 : sock_m{r,
nngxx::
pull::v0::make_socket().value_or_abort()}
60 void stop() { sock_m.stop(); }
62 template<
template<
typename>
typename kind_of,
ev::event_c event_t,
70 template<
template<
typename>
typename kind_of,
ev::event_c event_t>
74 hf_registry_m.insert(sock_m.id(), std::move(hf));
pull(ev::hf_registry &h, ev::enqueuer &r)
Construct a pull.
void on(void(class_t::*hf)(ev::hf_arg< kind_of, event_t >), class_t *self)
const socket & sock() const
Get the socket.
void insert(ev::handler_f< kind_of, event_t > hf)
socket & sock()
Get the socket.
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