摘要:
protobuf序列化之后为二进制数据,数据中可能包含 ‘\0’,直接转换为char *类型会导致发送数据不完整。解决方法: void buildProtobufMsg(const string& test,zmq::message_t *msg){ if (msg == nullptr) { re 阅读全文
posted @ 2019-08-14 10:25
lydstory
阅读(962)
评论(0)
推荐(0)