On Tuesday, January 22, 2013 1:05:25 AM UTC+8, anand ilkal wrote:
Hi,
I have a requirement where i need to read byte stream from socket (non-null terminated) and serialize the data before feeding to processing entity.
how can i define non-null terminated byte stream in protobuf?
The common practice is to divide the stream into blocks, each block starts with a fix-sized header containing the length of the content and the content is a serialized protobuf message.