On Tue, Nov 11, 2008 at 7:46 AM, ChJees <[EMAIL PROTECTED]> wrote:

> I managed to solve my problem now. I used the blah.Bytesize() function
> instead of sizeof( blah.c_str() ) when sending the message size :3.

Ah, yes, don't use c_str() with serialized protobufs because they may
contain zeros before the end of the string.  Either blah.ByteSize() or
blah.size() would be valid things to use.

Someone should really add to documentation about Sending and Receiving
> info between Server and Clients to prevent further Headaches. (Not
> small ones either!)

I actually added a page yesterday covering some of these frequently asked

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to