Re: Loading a message with AMQP types

2012-11-07 Thread Raul Jimenez
Thanks for taking the time to reply. With lists everything works but I'll switch my code over to the safe way, the verboseness is a small price to pay for type checking. -Raul Jimenez On Wed, Nov 7, 2012 at 4:38 AM, Rafael Schloming wrote: > Hi, sorry for the delay in answering this. I've been

Re: Loading a message with AMQP types

2012-11-07 Thread Rafael Schloming
Hi, sorry for the delay in answering this. I've been traveling to/attending ApacheCon EU, so I haven't had time to sit down and write out an example. So there are two ways of getting data into/out of a data object. This is the safe/verbose way: Creating: pn_data_t *body = pn_message_body(messag

Loading a message with AMQP types

2012-11-01 Thread Raul Jimenez
Hello, I am trying to load a message with amqp types but am unsure on how to pack and unpack. If some one could point me towards the right direction I'd appreciate it. I have tried the following (messenger and message setup omitted): Note: I can send text without issue. server: int i=0; pn_data_t