Steve Huston wrote:
I think we need a clean way to handle both binary and
character data in a streaming model. That's also very natural when
copying from files to messages.
True... The difficulty is that when you allow binary insertions
without the string intermediary, you need to provide ways to manage
packing, alignment, and byte ordering too. You end up either
reinventing something like CDR or forcing all to network byte order.
One advantage to using only strings in the message API is that it
throws the binary issues back up to the applications. The disadvantage
is that it throws the binary issues back up to the applications ;-)
framing::Buffer already has support for reading and writing many, but
not all, AMQP types portably, and I think this *is* functionality we
need to offer our users. We probably do need this for our AMQP types.
Jonathan
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org