[protobuf] How to know what type of message it is?

2013-03-21 Thread kramer65
Hello people, I'm just starting out with protobuf but I hope someone can enlighten me a bit. Lets say that I've got a couple message types defined. Now when a new message comes in (via zeromq) I don't know what type of message it is until I deserialize it, but to deserialize it I need to know

[protobuf] Re: Awkward error. How can this be?

2013-03-22 Thread kramer65
') and that worked fine. The error only occured from the moment I used protobuf serialization. Here is the code on pastebin with the error on line 54: http://pastebin.com/aJLCn7TM Any help? Op vrijdag 22 maart 2013 01:37:16 UTC+1 schreef kramer65 het volgende: Hello, I am doing some tests