On 05/03/2010 05:06 PM, Steve Olson wrote:
Thanks for the quick reply. I'll check out the link.
Am programming in C/C++.
OK, in C++ you use a Variant::Map - a sender adds map entries, then
encodes it into a message. A receiver decodes the message content into a
map, where it can be read by the application:
// Sender
Variant::Map content;
content["id"] = 987654321;
content["name"] = "Widget";
content["probability"] = 0.43;
Variant::List colours;
colours.push_back(Variant("red"));
colours.push_back(Variant("green"));
colours.push_back(Variant("white"));
content["colours"] = colours;
content["uuid"] = Uuid(true);
Message message;
encode(content, message);
sender.send(message);
// Receiver
Variant::Map content;
decode(receiver.fetch(), content)
Hope this helps!
Jonathan
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscr...@qpid.apache.org