[protobuf] libcurl integrtion

2010-07-28 Thread Birch
I am not well versed in c++, just a disclamer. I have muddled through creating a small client and I want to post the binary output via HTTP. Here is the source I have so far: #define CURL_STATICLIB #include #include #include #include "mvm.pb.h" #include "curl/curl.h" #include "curl/types.h" #

[protobuf] Re: why ParseFromIstream using std::cin always returns true using a pipe?

2010-07-28 Thread jetcube
Right, that is it! I think this explanation should be in the documentation :) (maybe it is but i didn't search hard enough) Thanks! On Jul 28, 6:34 pm, Jason Hsueh wrote: > Messages without any required fields are allowed to have an empty > serialization, so the library cannot assume that parsin

[protobuf] Re: Issue 209 in protobuf: Binary file generated with protoc leads to an error message.

2010-07-28 Thread protobuf
Updates: Status: WorkingAsIntended Owner: --- Comment #1 on issue 209 by jas...@google.com: Binary file generated with protoc leads to an error message. http://code.google.com/p/protobuf/issues/detail?id=209 The logging message is there to differentiate between parse failures

Re: [protobuf] why ParseFromIstream using std::cin always returns true using a pipe?

2010-07-28 Thread Jason Hsueh
Messages without any required fields are allowed to have an empty serialization, so the library cannot assume that parsing empty input is an error. You just need to test cin.eof() separately. On Wed, Jul 28, 2010 at 7:18 AM, jetcube wrote: > I have a simple app that received data using the stdin

[protobuf] why ParseFromIstream using std::cin always returns true using a pipe?

2010-07-28 Thread jetcube
I have a simple app that received data using the stdin and i have this loop: for(;;) { if(!request.ParseFromIstream(&cin)) { cerr << "Cannot parse pb message." << endl; return -1; } do_something(); } I wanted to test my app so i serialized a

[protobuf] Issue 209 in protobuf: Binary file generated with protoc leads to an error message.

2010-07-28 Thread protobuf
Status: New Owner: ken...@google.com Labels: Type-Defect Priority-Medium New issue 209 by sebhub: Binary file generated with protoc leads to an error message. http://code.google.com/p/protobuf/issues/detail?id=209 What steps will reproduce the problem? 1. Download the attached files. 2. Run t