[protobuf] Re: Java -using GPB -which type of stream should I be using over sockets?

2009-12-03 Thread Nigel Pickard
Jason: You know that's what I thought too about the InputStream/OutputStream after reading the Javadoc. I'm using Eclipse Galileo with Java 1.6.0.17 -for some reason it let me compile it and run it, creating an instance -I figured that was probably one of the problems. I'll post some code later.

[protobuf] Re: Java -using GPB -which type of stream should I be using over sockets?

2009-12-03 Thread Nigel Pickard
Here's my sample code. In this code, everything works for me -however when I change the GPBClient to use Data IO streams (just comment out the Object IO references and uncomment the Data IO references in GPBClient), that's when I get the "com.google.protobuf.InvalidProtocolBufferException: Protoco

[protobuf] Compatibility on using Protobuf

2009-12-03 Thread mk
Hi, I am trying to use protobuf to exchange data between program running on unix and another running on windows. Could someone help and tell if I can use the files genreated by protobuf on unix, on windows or I should generate them on windows too? Thanks for your reply, -- You received this mes

[protobuf] Receiving/Parsing Messages

2009-12-03 Thread Chris
Hey, I just started looking into protobuf for a project of mine. >From the Java Api page I could not really find how to parse a generated (compiled .proto is present) but "unknown" message. So for example: I have messages types MessageA and MessageB. The client component receives some bytes repre

[protobuf] Extensions not serializing properly?

2009-12-03 Thread Michael Laccetti
I'm trying to use PB as a means to send data from a C++ system to a Java-based ESB with BEEP as the underlying transport. For now, I'm using a test Java client to inject messages, just to ensure that the ESB is both listening and capable of processing the inbound messages. I've validated that my m

[protobuf] Does MSVC++6 support protobuf-2.2.0a ?

2009-12-03 Thread mk
Hi Could someone please help and tell me if protobuf 2.2a can be installed on windows xp with MSVC++6? Thanks for your reply -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To u

Re: [protobuf] Receiving/Parsing Messages

2009-12-03 Thread Adam Vartanian
> I just started looking into protobuf for a project of mine. > From the Java Api page I could not really find how to parse a > generated (compiled .proto is present) but "unknown" message. > > So for example: I have messages types MessageA and MessageB. The > client component receives some bytes r

[protobuf] Re: Receiving/Parsing Messages

2009-12-03 Thread Chris
I see. Another option is to send some kind of identifier preceding the message (just like the total size of the message), right? -- Chris On Dec 3, 5:23 pm, Adam Vartanian wrote: > > I just started looking into protobuf for a project of mine. > > From the Java Api page I could not really find

Re: [protobuf] Re: Receiving/Parsing Messages

2009-12-03 Thread Adam Vartanian
> Another option is to send some kind of identifier preceding the > message (just like the total size of the message), right? Yep. In fact, the wrapper message is effectively a protobuf-native version of that, using the tag number as the type identifier. - Adam -- You received this message bec

Re: [protobuf] Extensions not serializing properly?

2009-12-03 Thread Jason Hsueh
In Java you need to provide an ExtensionRegistry to the parse method Something like: ExtensionRegistry registry = ExtensionRegistry.newInstance(); Test.registerAllExtensions(registry); Test.BsgRequest req = Test.BsgRequest.parseFrom(payload, registry); On Thu, Dec 3, 2009 at 8:01 AM, Michael La

[protobuf] Re: XML to Protocol Buffers converter

2009-12-03 Thread Alex Antonov
Jason, there is a project that contains the XML & JSON marshalers for protobuf and back which would do exactly what you want: http://code.google.com/p/protobuf-java-format Thanks, Alex On Oct 13, 3:35 pm, Jason Smith wrote: > I wrote a generic proto-to-xml routine (using TinyXML) that'll convert

[protobuf] Re: Extensions not serializing properly?

2009-12-03 Thread Michael Laccetti
Oh, so awesome! That worked - much obliged! On Dec 3, 12:13 pm, Jason Hsueh wrote: > In Java you need to provide an ExtensionRegistry to the parse method > > Something like: > > ExtensionRegistry registry = ExtensionRegistry.newInstance(); > Test.registerAllExtensions(registry); > > Test.BsgRequ

Re: [protobuf] Compatibility on using Protobuf

2009-12-03 Thread Kenton Varda
The protobuf format is the same on all platforms and in all languages. This is one of the design goals. On Thu, Dec 3, 2009 at 4:48 AM, mk wrote: > Hi, > > I am trying to use protobuf to exchange data between program running > on unix and another running on windows. Could someone help and tell

Re: [protobuf] Does MSVC++6 support protobuf-2.2.0a ?

2009-12-03 Thread Kenton Varda
MSVC 6 is now over ten years old. We do not make any attempt to support this compiler, although we might accept patches to support it if they are not too intrusive. On Thu, Dec 3, 2009 at 4:39 AM, mk wrote: > Hi > Could someone please help and tell me if protobuf 2.2a can be > installed on wind