1 #include "hmbdc/Copyright.hpp" 4 #include "hmbdc/app/Message.hpp" 6 namespace hmbdc {
namespace app {
13 template <
typename CcClient,
typename Message>
16 if (m.typeTag == Message::typeTag) {
17 p->handleMessageCb(m.get<Message>());
24 template <
typename CcClient>
27 if (m.typeTag > 1000) {
28 auto j = &m.get<uint8_t>();
29 p->handleJustBytesCb(m.typeTag, j);
37 template <
typename CcClient,
typename ... Messages>
39 static void tryDispatch(CcClient* p,
MessageHead& w){
45 template <
typename CcClient,
typename M,
typename ... Messages>
47 static void tryDispatch(CcClient* p,
MessageHead& e) {
49 NEH::tryDispatch(p, e);
52 tryDispatch(static_cast<CcClient*>(
this), w);
Definition: MessageHandler.hpp:11
Definition: Message.hpp:25
A special type of message.
Definition: Message.hpp:105
Definition: MessageHandler.hpp:14
Definition: Client.hpp:11
Definition: MessageHandler.hpp:38