CodedOuptputStream.PushLimit/PopLimit

2009-06-30 Thread Matthews
I am writing a Java server and C++ client and trying to use Protocol Buffers for encoding the socket communication. I have written the Java server and tested it with a Java based client and all is well. However, I am having some difficulty with the C++ portion. I've wrapped the socket code in my

Re: CodedOuptputStream.PushLimit/PopLimit

2009-06-30 Thread Matthews
The title should have been CodedInputStream.PushLimit/ PopLimitsightyping too fast. Thanks for your patience. Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this

Re: CodedOuptputStream.PushLimit/PopLimit

2009-06-30 Thread Kenton Varda
Well, it's *supposed* to work as you say. But honestly, this code has not been tested with blocking streams, since that's not how we use it in Google. It's possible that there is a bug. But the code appears to be correct AFAICT. When CodedInputStream needs more data, it calls Refresh(), which