Hi Joe,

You have a couple of tried & true options.  You could manually copy the data 
from the struct into a Variant::Map and encode that into a Message.  You could 
use a library such as Google Protocol Buffers to both store the data in memory 
(i.e. instead of using a struct you'd use a protobuf generated class) and for 
transmission across the wire (since it serializes to/from a string).

Hope this helps,
Andy

On Oct 18, 2012, at 3:33 PM, Joe Ly wrote:

> Hi,
> 
> Anyone knows how I could send a C/C++ user-defined struct that encodes into 
> qpid messages?
> 
> For example, my struct is defined as
> 
> struct a {
>      int j;
>      float k;
>      float r[29];
> } a;
> 
> 
> Thanks,
> 
> 
> Joe Ly
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to