阅读背景:

C++ Linux Google Protobuf + boost::asio Cannot Parse

来源:互联网 

I am trying to send a Google Protobuf message over a boost::asio socket via TCP. I recognize that TCP is a streaming protocol and thus I am performing length-prefixing on the messages before they go through the socket. I have the code working, but it only appears to work some of the time, even though I'm repeating the same calls and not changing the environment. On occasion I will receive the following error:I am trying to send a Google Protobuf message o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: