Protocols

class req

Represents an nng_req protocol.

Public Functions

inline req(ev::hf_registry &h, ev::enqueuer &r)

Construct a req.

inline socket &sock()

Get the socket.

inline const socket &sock() const

Get the socket.

inline context_registry &ctxs()

Get the context_registry.

inline void stop()

Stop socket and all contexts.

template<template<typename> typename kind_of, ev::event_c event_t, typename class_t>
inline void on(void (class_t::* hf)(ev::hf_arg<kind_of, event_t>), class_t *self)
template<template<typename> typename kind_of, ev::event_c event_t>
inline void insert(ev::handler_f<kind_of, event_t> hf)
class rep

Represents an nng_rep protocol.

Public Functions

inline rep(ev::hf_registry &h, ev::enqueuer &r)

Construct a rep.

inline socket &sock()

Get the socket.

inline const socket &sock() const

Get the socket.

inline context_registry &ctxs()

Get the context_registry.

inline void stop()

Stop socket and all contexts.

template<template<typename> typename kind_of, ev::event_c event_t, typename class_t>
inline void on(void (class_t::* hf)(ev::hf_arg<kind_of, event_t>), class_t *self)
template<template<typename> typename kind_of, ev::event_c event_t>
inline void insert(ev::handler_f<kind_of, event_t> hf)
class push

Represents an nng_push protocol.

Public Functions

inline push(ev::hf_registry &h, ev::enqueuer &r)

Construct a push.

inline socket &sock()

Get the socket.

inline const socket &sock() const

Get the socket.

inline void stop()

Stop socket.

template<template<typename> typename kind_of, ev::event_c event_t, typename class_t>
inline void on(void (class_t::* hf)(ev::hf_arg<kind_of, event_t>), class_t *self)
template<template<typename> typename kind_of, ev::event_c event_t>
inline void insert(ev::handler_f<kind_of, event_t> hf)
class pull

Represents an nng_pull protocol.

Public Functions

inline pull(ev::hf_registry &h, ev::enqueuer &r)

Construct a pull.

inline socket &sock()

Get the socket.

inline const socket &sock() const

Get the socket.

inline void stop()

Stop socket.

template<template<typename> typename kind_of, ev::event_c event_t, typename class_t>
inline void on(void (class_t::* hf)(ev::hf_arg<kind_of, event_t>), class_t *self)
template<template<typename> typename kind_of, ev::event_c event_t>
inline void insert(ev::handler_f<kind_of, event_t> hf)