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"
#
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
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
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
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
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