Re: How can byte stream (non null terminated) is handled in protobuf?

92 views
Skip to first unread message

Feng Xiao

unread,
Jan 21, 2013, 12:21:20 PM1/21/13
to prot...@googlegroups.com


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.
 
Reply all
Reply to author
Forward
0 new messages