[protobuf] Re: Using Protocol Buffer in other Languages

2012-10-02 Thread cisco tierra
Hi. You can write your own parser, the structure to follow it is not difficult. You can download the source code for protobuffer and you will have the compiler/cpp, compiler/java and compiler/python parsers to copy. I wrote the first version of parser to generate code for fitnesse in two

[protobuf] streaming multiple messages to 1 stream

2012-10-02 Thread kenrick koo
I've read the suggestion about first writing the size of each message followed by the message in order to workaround the issue that protocol buffer parsers don't know where 1 message ends and another begins. Could someone show example code on how to do this for a C# client sending a message

[protobuf] Job.proto:11:18: DescriptorProto is not defined.

2012-10-02 Thread Fahad Madani
Hi, I am trying to compile my .proto file using protoc compiler and generate java classes for the same. Below is my Job.proto file *import google/protobuf/descriptor.proto; option java_package = com.myfile.test; option java_outer_classname = JobProto; message Job{ required string

[protobuf] ignoring part of the message -?

2012-10-02 Thread victorl
Hi, My message is an UDP packet header and I have to ignore the rest of the packet. How can I express that in .proto syntax? Note that the header length is fixed (70B), but the packet length is not Also, would it be possible to validate that those first 70B really conform to the message

Re: [protobuf] Job.proto:11:18: DescriptorProto is not defined.

2012-10-02 Thread Jason Hsueh
To start with you need to use the qualify with the package as google.protobuf.DescriptorProto. See the section on Name Resolution: https://developers.google.com/protocol-buffers/docs/proto#packages Assuming your paths are set up correctly it should work after that. On Fri, Sep 28, 2012 at 2:19