remote-device-name: Minor cleanup of documentation and code
[remote/remote-mci.git] / protocols / diku_host_server / MsgMoteAddresses.h
blob26429ce29b2b79e65b386da9faaa7ba20b54fdcd
1 #ifndef MSGMOTEADDRESSES_H_
2 #define MSGMOTEADDRESSES_H_
4 #include "BaseMsg.h"
5 #include "MsgPayload.h"
7 namespace remote { namespace protocols { namespace diku_host_server {
9 class MsgMoteAddresses : public BaseMsg
11 public:
12 MsgMoteAddresses(std::string mac, std::string netAddress = "");
13 MsgMoteAddresses(uint8_t*& buffer, uint32_t& buflen);
14 ~MsgMoteAddresses();
15 uint32_t getLength();
16 uint8_t* write(uint8_t* buffer, uint32_t& buflen);
17 void print(FILE* s);
19 std::string getNetAddress();
20 std::string getMac();
21 protected:
22 uint8_t* read(uint8_t* buffer, uint32_t& buflen);
24 MsgPayload netAddress;
25 MsgPayload mac;
28 }}}
30 #endif /*MSGMOTEADDRESSES_H_*/