Initial commit
[remote/remote-mci.git] / protocols / diku_host_server / MsgHostRequest.h
blob979376d9fd4ca452c3a2d8561d89f4cc6737e36e
1 #ifndef MSGHOSTREQUEST_H_
2 #define MSGHOSTREQUEST_H_
4 #include "tcputil.h"
5 #include "BaseMsg.h"
6 #include "MsgPayload.h"
7 #include "MsgMoteAddresses.h"
9 namespace remote { namespace protocols { namespace diku_host_server {
11 class MsgHostRequest : public BaseMsg
13 public:
14 MsgHostRequest(MsgMoteAddresses& adressess, MsgPayload& message);
15 MsgHostRequest(uint8_t*& buffer, uint32_t& buflen);
16 ~MsgHostRequest();
18 uint32_t getLength();
19 uint8_t* write(uint8_t* buffer, uint32_t& buflen);
20 void print(_IO_FILE* s);
22 MsgMoteAddresses& getMoteAddresses();
23 MsgPayload& getMessage();
25 protected:
26 uint8_t* read(uint8_t* buffer, uint32_t& buflen);
27 MsgMoteAddresses* addresses;
28 MsgPayload* message;
29 bool deleteMsg;
32 }}}
33 #endif /*MSGHOSTREQUEST_H_*/