1 ////////////////////////////////////////////////////////////////////////////////
3 // Author: Artur Szostak
4 // Email: artur@alice.phy.uct.ac.za | artursz@iafrica.com
6 ////////////////////////////////////////////////////////////////////////////////
8 #ifndef dHLT_DDL_L2_SIGNAL_RECEIVER_HPP
9 #define dHLT_DDL_L2_SIGNAL_RECEIVER_HPP
11 #include "BCMP/Receiver.hpp"
12 #include "EventID.hpp"
20 class L2SignalReceiver : public BCMP::EventHandler
24 L2SignalReceiver(const UShort port = 4900);
25 virtual ~L2SignalReceiver();
27 void Terminate() { terminate = true; };
31 virtual void GotL2(const EventID eventid) = 0;
33 virtual void OnMessage(
34 const char* message, const UInt length,
35 const System::Address& from
41 BCMP::Receiver receiver;
48 #endif // dHLT_DDL_L2_SIGNAL_RECEIVER_HPP