#include <message_processor.hpp>
|
template<typename T , typename R > |
void | register_handler (uint32_t msgType, T *self, R(T::*handler)() const, bool unique=false) |
|
template<typename T , typename R > |
void | register_handler (uint32_t msgType, T *self, R(T::*handler)(), bool unique=false) |
|
template<typename T , typename P , typename R > |
void | register_handler (uint32_t msgType, T *self, R(T::*handler)(const P &) const, bool unique=false) |
|
template<typename T , typename P , typename R > |
void | register_handler (uint32_t msgType, T *self, R(T::*handler)(const P &), bool unique=false) |
|
template<typename T , typename P , typename R > |
void | register_handler (uint32_t msgType, T *self, R(T::*handler)(const P &, const msgpack::object &) const, bool unique=false) |
|
template<typename T , typename P , typename R > |
void | register_handler (uint32_t msgType, T *self, R(T::*handler)(const P &, const msgpack::object &), bool unique=false) |
|
Napi::Promise | process_message (const Napi::CallbackInfo &info) |
|
void | close () |
|
|
template<typename P , typename R > |
void | _register_handler (uint32_t msgType, const std::function< R(const P &, const msgpack::object &)> &fn, bool unique=false) |
|
Definition at line 11 of file message_processor.hpp.
◆ _register_handler()
template<typename P , typename R >
void bb::nodejs::AsyncMessageProcessor::_register_handler |
( |
uint32_t |
msgType, |
|
|
const std::function< R(const P &, const msgpack::object &)> & |
fn, |
|
|
bool |
unique = false |
|
) |
| |
|
inlineprivate |
◆ close()
void bb::nodejs::AsyncMessageProcessor::close |
( |
| ) |
|
|
inline |
◆ process_message()
Napi::Promise bb::nodejs::AsyncMessageProcessor::process_message |
( |
const Napi::CallbackInfo & |
info | ) |
|
|
inline |
◆ register_handler() [1/6]
template<typename T , typename R >
void bb::nodejs::AsyncMessageProcessor::register_handler |
( |
uint32_t |
msgType, |
|
|
T * |
self, |
|
|
R(T::*)() const |
handler, |
|
|
bool |
unique = false |
|
) |
| |
|
inline |
◆ register_handler() [2/6]
template<typename T , typename R >
void bb::nodejs::AsyncMessageProcessor::register_handler |
( |
uint32_t |
msgType, |
|
|
T * |
self, |
|
|
R(T::*)() |
handler, |
|
|
bool |
unique = false |
|
) |
| |
|
inline |
◆ register_handler() [3/6]
template<typename T , typename P , typename R >
void bb::nodejs::AsyncMessageProcessor::register_handler |
( |
uint32_t |
msgType, |
|
|
T * |
self, |
|
|
R(T::*)(const P &) const |
handler, |
|
|
bool |
unique = false |
|
) |
| |
|
inline |
◆ register_handler() [4/6]
template<typename T , typename P , typename R >
void bb::nodejs::AsyncMessageProcessor::register_handler |
( |
uint32_t |
msgType, |
|
|
T * |
self, |
|
|
R(T::*)(const P &) |
handler, |
|
|
bool |
unique = false |
|
) |
| |
|
inline |
◆ register_handler() [5/6]
template<typename T , typename P , typename R >
void bb::nodejs::AsyncMessageProcessor::register_handler |
( |
uint32_t |
msgType, |
|
|
T * |
self, |
|
|
R(T::*)(const P &, const msgpack::object &) const |
handler, |
|
|
bool |
unique = false |
|
) |
| |
|
inline |
◆ register_handler() [6/6]
template<typename T , typename P , typename R >
void bb::nodejs::AsyncMessageProcessor::register_handler |
( |
uint32_t |
msgType, |
|
|
T * |
self, |
|
|
R(T::*)(const P &, const msgpack::object &) |
handler, |
|
|
bool |
unique = false |
|
) |
| |
|
inline |
◆ dispatcher
◆ open
The documentation for this class was generated from the following file: