[protobuf] Re: How to read continuous stream of messages from TCP

2012-03-07 Thread waynix
van Jones wrote: > On Feb 27, 2012, at 17:27 , waynix wrote: > > > 1. Is this still the way to do it? Seems quite cumbersome (to lazy me ;-).   > > Is there  a wrapper built in to do this? > > Yes. Sadly there is no wrapper included in the library. > > > 2. If I unde

[protobuf] How to read continuous stream of messages from TCP

2012-03-06 Thread waynix
Hello All; New to protobuf and did some limited search for my question. So my apology if this has already been talked about. I naively thought that ParseFromFileDescriptor/ParseFromIstream would block on an TCP socket and return when a valid message is received. Read some old posts from 2010 and