#ifndef TRANSM_UTIL #define TRANSM_UTIL #include #include #include #include "of_util.h" using namespace ofen; std::shared_ptr get_logger(const std::string& mark, const std::string& log_file); class CFrameBuffer { public: CFrameBuffer(); ~CFrameBuffer(); }; /* 【 transm TCP 数据协议 】 header 2 char: 0xFF 0xFE type 2 char: len 4 char: data xxxxx: tail 2 char: 0xFF 0xFF */ class CTransProtocal { public: CTransProtocal(); ~CTransProtocal(); public: CFrameBuffer* parse(CMutBuffer& buffer); }; #endif