On Feb 6, 2010, at 10:51 , PromeLite wrote:
Is there a way
to know what the structure type is so that the server can deserialize
it to the corresponding structure??

If you only have a few possible types, see the documentation on Union types:

http://code.google.com/apis/protocolbuffers/docs/techniques.html#union

If you have many possible types, you may wish to consider implementing a more complicated protocol where you send a "header" with the message type string before the message.

Hope this helps,

Evan

--
Evan Jones
http://evanjones.ca/

--
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 unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to