Initial commit
[remote/remote-mci.git] / protocols / client_server / MsgClientConfirm.h
blob1e6cfcee6f454c730d9ba1554fcde4a1df623ecb
1 #ifndef MSGCLIENTCONFIRM_H_
2 #define MSGCLIENTCONFIRM_H_
3 #include "tcputil.h"
4 #include "BaseMsg.h"
5 #include "MsgClientRequest.h"
6 #include "localconstants.h"
8 namespace remote { namespace protocols { namespace client_server {
10 class MsgClientConfirm : public BaseMsg
12 public:
13 MsgClientConfirm(uint8_t command, result_t result, dbkey_t mote_id);
14 MsgClientConfirm(uint8_t command, result_t result, dbkey_t mote_id, MsgPayload& moteMsg);
15 MsgClientConfirm(uint8_t* buffer, uint32_t& buflen);
16 uint32_t getLength();
17 uint8_t* write(uint8_t* buffer, uint32_t& buflen);
18 void print(_IO_FILE* s);
20 uint8_t getCommand();
21 result_t getResult();
22 dbkey_t getMoteId();
24 MsgPayload& getMoteMsg();
25 protected:
26 uint8_t command;
27 result_t result;
28 dbkey_t mote_id;
29 uint8_t* read(uint8_t* buffer, uint32_t& buflen);
30 MsgPayload moteMsg;
33 }}}
35 #endif /*MSGCLIENTCONFIRM_H_*/