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
prefix. Some implementations provide simple ways of including this by
default, but it depends on exactly how you want to represent it.

Marc

On 10 July 2010 22:05, A. Katasonov <alexander.kataso...@gmail.com> wrote:

> 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 unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>


-- 
Regards,

Marc

-- 
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 unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to