Reorganize to remove DIKU specific naming
[remote/remote-mci.git] / protocols / host_server / MsgPlugEvent.h
blob5237dbbed7ad5916809c255e35d72ceae16c31e8
1 #ifndef MSGPLUGEVENT_H_
2 #define MSGPLUGEVENT_H_
3 #include "tcputil.h"
4 #include "BaseMsg.h"
5 #include "MsgMoteConnectionInfoList.h"
7 namespace remote { namespace protocols { namespace host_server {
9 enum plugeventtype
11 PLUG_MOTES = 0,
12 UNPLUG_MOTES = 1
15 class MsgPlugEvent : public BaseMsg
17 public:
18 MsgPlugEvent(uint8_t type);
19 MsgPlugEvent(uint8_t*& buffer, uint32_t& buflen);
20 virtual ~MsgPlugEvent();
21 uint32_t getLength();
22 uint8_t* write(uint8_t* buffer, uint32_t& buflen);
23 void print(FILE* s);
25 uint8_t getType();
26 MsgMoteConnectionInfoList& getInfoList();
28 private:
29 uint8_t* read(uint8_t* buffer, uint32_t& buflen);
30 uint8_t type;
31 MsgMoteConnectionInfoList infoList;
34 }}}
36 #endif /*MSGPLUGEVENT_H_*/