Alright, in that case I totally need to change my setup.

I'm working on a project in which we are trying to fly a large kite using 
built in steering. For this we've set up a network connection with the kite 
to send and receive messages. For example: we measure altitude, direction, 
speed, etc. and we need to send that info back down to earth. All this 
happens in separate messages, because they are collected asynchronously.

Does this mean that we need to setup a separate socket and connection in 
zeromq for every type of message we want to send down to earth?

Also I wanted to make a logger process to which all messages should be send 
in order to write them to the central log file. This would make it 
impossible because messages that are collected can be any of the different 
(.proto) types.

Is there no option to send an identifier with the message so that the type 
can be recognized? Or would a better solution be to create one universal 
message with all types set to optional (which would create a lot more 
overhead I guess)?



Op donderdag 21 maart 2013 23:56:10 UTC+1 schreef Feng Xiao het volgende:
>
> On Thu, Mar 21, 2013 at 3:48 PM, kramer65 <kra...@gmail.com> wrote:
>
>> 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 what type of message 
>> it is (catch 22!). I'm totally lost here. Could anybody please explain this 
>> to me?
>>
> The common practice is that you always send the same message over the 
> wire, so the server knows it.
>  
>
>>
>> All tips are welcome!
>> -- 
>> 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 protobuf+u...@googlegroups.com.
>> To post to this group, send email to prot...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/protobuf?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

Op donderdag 21 maart 2013 23:56:10 UTC+1 schreef Feng Xiao het volgende:
>
> On Thu, Mar 21, 2013 at 3:48 PM, kramer65 <kra...@gmail.com 
> <javascript:>>wrote:
>
>> 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 what type of message 
>> it is (catch 22!). I'm totally lost here. Could anybody please explain this 
>> to me?
>>
> The common practice is that you always send the same message over the 
> wire, so the server knows it.
>  
>
>>
>> All tips are welcome!
>>
>> -- 
>> 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 protobuf+u...@googlegroups.com <javascript:>.
>> To post to this group, send email to prot...@googlegroups.com<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/protobuf?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

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


Reply via email to