remote-device-name: Minor cleanup of documentation and code
[remote/remote-mci.git] / protocols / diku_host_server / MsgPlugEvent.h
blob33de1f04ebb707497bebab10d0ce2ff43bd0a798
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 diku_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_*/