On Oct 28, 11:23 pm, [EMAIL PROTECTED] wrote:

<snip>

> and on the receiver side:
>     // receive the message
>     byte[] buffer = receive();
>     // parse the message from the array
>     Message msg = Message.parseFrom(buffer);
>     // check if message has the extension
>     if(msg.hasExtension(Extension.ExtensionName)) // this returns
> false = (
>         // blah blah blah
>
> Thanks for any insight!

You need to pass in an ExtensionRegistry in the parseFrom call. Have a
look at the unit tests for examples (search for "extension").

Jon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to