On Mon, Jan 12, 2009 at 8:32 PM, Dave Bailey <[email protected]> wrote: > > I agree, and it seems to be a question that comes up frequently in > this forum, so maybe we should add a page to the Wiki that discusses > how to send and receive a stream of protobuf (or any) messages.
I did add some documentation on that here: http://code.google.com/apis/protocolbuffers/docs/techniques.html#streaming > Things like run length encoding, magic bytes, checksums, record types > - these are either highly desirable or absolutely necessary when > streaming blocks of opaque binary data over a network connection, > reading a sequence of them from a file, or whatever. I think there > may be a misconception out there that libprotobuf somehow magically > takes care of all those things. It seems to me that people need to > conceive of a serialized protobuf object as the payload to a packet, > and it is their job to design a packet header that describes the > payload with sufficient information such that it can be extracted and > dispatched to the appropriate handler. Well said. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. 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 -~----------~----~----~----~------~----~------~--~---
