5 #include "MsgClientRequest.h"
6 #include "MsgClientConfirm.h"
7 #include "MsgSession.h"
10 namespace remote
{ namespace protocols
{ namespace client_server
{
14 CLIENTMSG_SESSION
= 0,
15 CLIENTMSG_CLIENTREQUEST
= 1,
16 CLIENTMSG_CLIENTCONFIRM
= 2
19 class ClientMsg
: public BaseMsg
21 static const uint32_t CurrentProtocolVersion
= 1;
23 ClientMsg(uint8_t*& buffer
, uint32_t& buflen
);
24 ClientMsg(MsgSession
& message
);
25 ClientMsg(MsgClientRequest
& message
);
26 ClientMsg(MsgClientConfirm
& message
);
31 uint8_t* write(uint8_t* buffer
, uint32_t& buflen
);
35 uint32_t getProtocolVersion();
37 MsgSession
& getSession();
38 MsgClientRequest
& getClientRequest();
39 MsgClientConfirm
& getClientConfirm();
42 uint8_t* read(uint8_t* buffer
, uint32_t& buflen
);
44 uint32_t protocolVersion
;
51 #endif /*CLIENTMSG_H_*/