[protobuf] libcurl integrtion

2010-07-28 Thread Birch
::ShutdownProtobufLibrary(); return 0; } I added comments where I am having trouble. I basically just wan to populate the body (content) of the HTTP post message with the binary output of the SerializeToOStream call. Any help would be greatly appreciated! Birch -- You received this message because you

[protobuf] Reading and Writing using CodedOutputStream and CodedInputStream

2010-08-29 Thread Birch
, vectordata), vectordataread(location). Below is the code. If I call it with a single string, the first write method, it seems to work ok. But when I call it with a vector, then it failes saying the first readVarInt returns 20+. Am I missing something obvious? Birch void FileLogger

[protobuf] Re: Reading and Writing using CodedOutputStream and CodedInputStream

2010-08-29 Thread Birch
I resolved this issue by slightly adjusting my logic, and changing the way in which i deal with file handling. Now I just have to get it to honor my append parameter so I can expand the file, and eventually truncate it Here is the current code: Birch void FileLogger::write(const string

[protobuf] Re: Reading and Writing using CodedOutputStream and CodedInputStream

2010-08-29 Thread Birch
Ok, here is the final working code which handles the append and purge boolean parameters. If anyone can provide feedback, comments, suggestions, snotty remarks, or anything, I would love to hear them. Especially love to know if you have a more efficient way. Birch void FileLogger::write(const

[protobuf] Re: Reading and Writing using CodedOutputStream and CodedInputStream

2010-08-29 Thread Birch
Ok, I incorporated some suggestions from a someone who replied, but I still core dump in the following method: bool flag = cis-ReadRaw(ret.back(), size); Any ideas? Code is below. Thanks! Birch void FileLogger::write(const string location, const string data