Initial commit
[remote/remote-mci.git] / protocols / client_server / MsgSession.h
blob3e34abb8c43602435fa1a3d30f71e7faab3156b0
1 #ifndef MSGSESSION_H_
2 #define MSGSESSION_H_
3 #include "BaseMsg.h"
4 #include "types.h"
6 namespace remote { namespace protocols { namespace client_server {
8 class MsgSession : public BaseMsg
10 public:
11 MsgSession(dbkey_t sessionId);
12 MsgSession(uint8_t* buffer, uint32_t& buflen);
13 ~MsgSession();
15 uint32_t getLength();
16 uint8_t* write(uint8_t* buffer, uint32_t& buflen);
17 void print(_IO_FILE* s);
19 dbkey_t getSessionId();
20 protected:
21 dbkey_t sessionId;
22 uint8_t* read(uint8_t* buffer, uint32_t& buflen);
25 }}}
27 #endif /*MSGSESSION_H_*/