You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Michael Ivanov <iv...@logit-ag.de> on 2015/07/14 12:30:36 UTC

How to get the message representation in encoded form?

Hallo,

I am receiving the qpid message is one process, but would like to actually decode
it in a different process. I it possible to use proton to get the message in the
unpacked binary form, then copy the buffer over to another process (eg. using pipe)
and unpack it to actual pn_message_t there?

Best regards,
-- 
 \   / |			           |
 (OvO) |  Mikhail Iwanow                   |
 (^^^) |                                   |
  \^/  |      E-mail:  ivans@logit-ag.de   |
  ^ ^  |                                   |

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: How to get the message representation in encoded form?

Posted by Michael Ivanov <iv...@isle.spb.ru>.
Hmm thanks, but what if I am using pn_messenger functions? I am afraid
I am not using the reactor.

Best regards,

14.07.2015 15:37, Bozo Dragojevic пишет:
> On 14. 07. 15 12.30, Michael Ivanov wrote:
>> Hallo,
>>
>> I am receiving the qpid message is one process, but would like to actually decode
>> it in a different process. I it possible to use proton to get the message in the
>> unpacked binary form, then copy the buffer over to another process (eg. using pipe)
>> and unpack it to actual pn_message_t there?
>>
>> Best regards,
> 
> If you use the engine and the reactor, the encoded form is
> available on PN_DELIVERY event
> 
> Take a look at reactor-recv.c, you want to split it between lines 210
> and 211 :)
> 
> Bozzo
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
> 


-- 
 \   / |			           |
 (OvO) |  Михаил Иванов                    |
 (^^^) |      Тел.:    +7(911) 223-1300    |
  \^/  |      E-mail:  ivans@isle.spb.ru   |
  ^ ^  |                                   |

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: How to get the message representation in encoded form?

Posted by Bozo Dragojevic <bo...@digiverse.si>.
On 14. 07. 15 12.30, Michael Ivanov wrote:
> Hallo,
>
> I am receiving the qpid message is one process, but would like to actually decode
> it in a different process. I it possible to use proton to get the message in the
> unpacked binary form, then copy the buffer over to another process (eg. using pipe)
> and unpack it to actual pn_message_t there?
>
> Best regards,

If you use the engine and the reactor, the encoded form is
available on PN_DELIVERY event

Take a look at reactor-recv.c, you want to split it between lines 210
and 211 :)

Bozzo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org