On Thu, Sep 2, 2010 at 09:59, Jean-Sebastien Stoezel
<js.stoe...@gmail.com> wrote:
> Hence I'm now using delimiters.

But make sure to use length delimiting: length + message. Don't feel
tempted to just delimit the message with 'special characters' because
of course they might be just part of a message.

>
> Thanks for the headsup.
>
> On Sep 2, 2010 11:53 AM, "Daniel Wright" <dwri...@google.com> wrote:
>
> See http://code.google.com/apis/protocolbuffers/docs/techniques.html#streaming
> Your solution of trying to parse after each byte received is not just slow,
> it's completely incorrect.  It's entirely possible, and quite likely, that
> if you break the encoded version of a message in half, each half will parse
> successfully on its own, but the contents of the message will be incorrect.
>
> On Thu, Sep 2, 2010 at 7:29 AM, Jean-Sebastien Stoezel
> <js.stoe...@gmail.com> wrote: > > Hello, > ...
>
> --
> 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.
>

-- 
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