On Wed, 30 Jan 2013 07:36:04 -0800 (PST)
Barzo <[email protected]> wrote:
>
> >
> >
> > So you want to use the opCode value to distinguish which message is
> > sent? The common practice is that you always send the sam message
> > over the wire, like this:
> > message TheOneMessageSentOverTheWire {
> > optional EMessages opCode = 1;
> > optional MSG_METHOD_CONNECT message1 = 2;
> > optional MSG_EVENT_CONNECT message 2 = 3;
> > ...
> > }
> >
>
> Dear Feng,
>
> first, thanks for your reply!
> So you suggest to send ALWAYS every message? It sound strange to
> me! :-) Is not too verbose? For example if I have 50 or more
> messages...?
>
> Daniele.
>
Those messages are optional. You will only send one, the one that you
actually add. The others take up no space in the serialized data stream.
Chris
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.