123456789101112131415161718192021 |
- //
- // Created by miti on 21/07/19.
- //
- #ifndef DECRYPTORAPP_PROTOBUFREADWRITE_H
- #define DECRYPTORAPP_PROTOBUFREADWRITE_H
- #include <google/protobuf/message_lite.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/io/zero_copy_stream_impl.h>
- #include <unistd.h>
- #include <stdio.h>
- #include <iostream>
- namespace protobufReadWrite {
- using namespace google::protobuf::io;
- int write_protobuf_msg_to_fd(int accept_fd, google::protobuf::MessageLite& message);
- int read_protobuf_msg_from_fd(int accept_fd, google::protobuf::MessageLite& message);
- };
- #endif //DECRYPTORAPP_PROTOBUFREADWRITE_H
|