ProtobufMessageRW.h 425 B

12345678910111213141516171819
  1. //
  2. // Created by miti on 2019-12-24.
  3. //
  4. #ifndef VERIFIER_PROTOBUFMESSAGERW_H
  5. #define VERIFIER_PROTOBUFMESSAGERW_H
  6. //using namespace google::protobuf;
  7. #include <google/protobuf/message_lite.h>
  8. class ProtobufMessageRW {
  9. int fd;
  10. public:
  11. int read_msg(google::protobuf::MessageLite& message);
  12. int write_msg(google::protobuf::MessageLite& message);
  13. void set_fd(int fd);
  14. };
  15. #endif //VERIFIER_PROTOBUFMESSAGERW_H