Re: [protobuf] Parser error - missing required field

2013-01-20 Thread Feng Xiao
On Sat, Jan 19, 2013 at 2:26 AM, wrote: > I built a small c++ test server and client app using protocol buffers over > sockets. > > The server sends several packets made up of > >1. a 32 bit marker (0xDEADBEEF) >2. a 32 bit size of message >3. the message data. > > > The message forma

Re: [protobuf] Re: Dynamic Message and google::protobuf::Message incompatibility

2013-01-20 Thread Feng Xiao
On Sat, Jan 19, 2013 at 2:13 AM, m wrote: > The furthest I followed it was looking down into the implementation of > CopyFrom() which calls MergeFrom(). Inside of MergeFrom() there's a spot > where it calls something like "dynamic_cast_if_available" which returns > NULL (failing to dynamic_cast)

[protobuf] Re: How to sort the repeated element?

2013-01-20 Thread Xingliang Ni
hi,do you know how to do this in java? On Thursday, July 30, 2009 2:28:29 AM UTC+8, Kenton Varda wrote: > > In C++, you can use the standard STL sort() function: > http://www.sgi.com/tech/stl/sort.html > > RepeatedPtrField supports > iterators, so you can

[protobuf] Problem with ./configure

2013-01-20 Thread ggiorgio63
Hi all, I can not finish the ./configure on my MSYS shell with MinGW 4.6.2. Using Windows XP. In practice reaches a certain point and then remains suspended blocking my pc. How do I finally have the makefile to compile eg protobuf-2.4.1.zip or protobuf-2.5.0rc1.zip ? -- You received this messa

[protobuf] GzipOutputStream does not work in ubuntu 12.10

2013-01-20 Thread David Granados
Hello. I was installed protobuf using README.txt, in ubuntu 12.10. Compiler don't found Gzip... .h I copied manually the google src in /usr/local/include/google/protobuf Now, found the .h Library, but, if i execute: #include #include //using namespace std; using namespace google::protobuf::i

[protobuf] Re: How to sort the repeated element?

2013-01-20 Thread Xingliang Ni
how to sort it using java? 在 2009年7月30日星期四UTC+8上午2时28分29秒,Kenton Varda写道: > > In C++, you can use the standard STL sort() function: > http://www.sgi.com/tech/stl/sort.html > > RepeatedPtrField supports > iterators, so you can do something like: > > #in

[protobuf] Compile protobuf-2.4.1 with MinGW 4.6.2

2013-01-20 Thread ggiorgio63
Hello everyone, I can not compile protobuf-2.4.1 with MinGW 4.6.2, because ./configure in MSYS crashes, remains in the sleep state and the computer is locked. Can you help me or as an attachment package compiled with MinGW 4.6.2 for Windows XP ? -- You received this message because you are sub

[protobuf] protobuf + javolution?

2013-01-20 Thread Andrei Pozolotin
Hello; I am curious if any one knows of implementations of protobuf codecs which use javolution like http://javolution.org/ struct/union object proxy http://javolution.org/target/site/apidocs/javolution/io/Struct.html to the underlying byte array, to avoid GC? thanks you. Andrei. -- You re

[protobuf] Compile protobuf-2.4.1 with MinGW 4.6.2

2013-01-20 Thread Giorgio Guglielmone
Hello everyone, I can not compile protobuf-2.4.1 with MinGW 4.6.2, because ./configure in MSYS crashes, remains in the sleep state and the computer is locked. Can you help me or as an attachment package compiled with MinGW 4.6.2 for Windows XP ? -- You received this message because you are sub