5 #include "MsgPayload.h"
6 #include "MsgPlugEvent.h"
7 #include "MsgHostRequest.h"
8 #include "MsgHostConfirm.h"
10 namespace remote
{ namespace protocols
{ namespace diku_host_server
{
14 HOSTMSGTYPE_PLUGEVENT
,
15 HOSTMSGTYPE_HOSTREQUEST
,
16 HOSTMSGTYPE_HOSTCONFIRM
19 #define HOST_SERVER_PROTOCOL_VERSION 0x00010000
21 class HostMsg
: public BaseMsg
24 HostMsg(MsgPlugEvent
& message
);
25 HostMsg(MsgHostRequest
& message
);
26 HostMsg(MsgHostConfirm
& message
);
27 HostMsg(uint8_t*& buffer
, uint32_t& buflen
);
31 uint8_t* write(uint8_t* buffer
, uint32_t& buflen
);
32 void print(_IO_FILE
* s
);
34 uint32_t getProtocolVersion();
37 MsgHostRequest
& getHostRequest();
38 MsgHostConfirm
& getHostConfirm();
39 MsgPlugEvent
& getPlugEvent();
42 uint8_t* read(uint8_t* buffer
, uint32_t& buflen
);
43 uint32_t protocolVersion
;