Handler.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * Message.h
8  *
9  ****/
10 
11 #pragma once
12 
13 #include <Data/LinkedObjectList.h>
14 #include "Message.h"
15 
16 namespace mDNS
17 {
21 class Handler : public LinkedObjectTemplate<Handler>
22 {
23 public:
25 
30  virtual bool onMessage(Message& message) = 0;
31 };
32 
33 } // namespace mDNS
virtual bool onMessage(Message &message)=0
Callback to be invoked for each received message.
Definition: Answer.h:17
Base class template for linked items with type casting.
Definition: LinkedObject.h:56
Encapsulates a message packet for flexible introspection.
Definition: Message.h:28
Virtual base class used for chaining message handlers.
Definition: Handler.h:21