MCS: Use remote.h and cleanup header file inclusion
[remote/remote-mci.git] / protocols / BaseMsg.h
bloba800be56bae270f753170d703b3283380338c860
1 #ifndef BASEMSG_H_
2 #define BASEMSG_H_
3 #include "tcputil.h"
5 namespace remote { namespace protocols {
7 class BaseMsg
9 public:
10 virtual ~BaseMsg(){};
11 virtual uint32_t getLength() = 0;
12 virtual uint8_t* write(uint8_t* buffer, uint32_t& buflen) = 0;
13 virtual void print(FILE* s) = 0;
14 protected:
15 virtual uint8_t* read(uint8_t* buffer, uint32_t& buflen) = 0;
20 #endif /*BASEMSG_H_*/