Thanks, Chris! I understood. Using the message length is the only simple solution for this issue.
среда, 12 сентября 2012 г., 22:38:25 UTC+4 пользователь Christopher Head написал: > > Protobuf messages do not have inherent delimiters; in fact, the > concatenation of two messages can sometimes be a perfectly valid single > message. Add delimiters in your protocol (if you are only sending a single > message then just shutdown() the socket afterwards and have the recipient > read until EOF; otherwise, send the length of the message in front of the > message itself). > > Chris > On Sep 12, 2012 8:37 AM, "iz" <[email protected] <javascript:>> wrote: > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/3uauF7knI50J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
