[protobuf] EOF and raw data from socket?

2010-07-10 Thread A. Katasonov
Hello! How to find out whether I got whole message or not if I read raw data from socket? I use Python. Regards, Alex. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsu

Re: [protobuf] EOF and raw data from socket?

2010-07-10 Thread Marc Gravell
Since an outermost protobuf message does not include either a delimiter or a length, it is (for this scenario) necessary either to include your *own* message boundary mechanism, or for single messages just close the stream. The most common approach seems to be simply to include the length as a pref