Fix syntax error in the remote.sh UDEV script
[remote/remote-mci.git] / protocols / Message.h
blob39d52048f81bd878ccb5bb50b04fb2ec8bce0bf7
1 #ifndef MESSAGE_H_
2 #define MESSAGE_H_
3 #include "tcputil.h"
4 #include "BaseMsg.h"
5 #include <netinet/in.h>
6 #include <errno.h>
8 namespace remote { namespace protocols {
10 class Message
12 public:
13 Message();
14 ~Message();
15 bool nonBlockingRecv(int fd);
16 // void recvMsg(int fd,BaseMsg& msg);
17 void sendMsg(int fd,BaseMsg& msg);
18 uint32_t getLength();
19 uint8_t* getData();
20 protected:
21 uint32_t recvLen;
22 uint32_t datalen;
23 uint8_t* data;
28 #endif /*MESSAGE_H_*/