Protocols: Make the inclusion guard uniform and unique
[remote/remote-mci.git] / protocols / client_server / MsgSession.h
blobd6112581e342e0da09978b8e54aaf354dc1d19d9
1 #ifndef REMOTE_PROTOCOLS_CLIENT_SERVER_MSGSESSION_H
2 #define REMOTE_PROTOCOLS_CLIENT_SERVER_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(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