qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elliot Gregory <egreg...@uk.ibm.com>
Subject SWIG & Ruby - extracting messages from the transport head
Date Tue, 12 May 2015 07:54:49 GMT
I'm looking to configure Ruby and SWIG to use an alternate ruby socket for
the AMQP connection. To collect the outgoing message at the C level it a
combination of pn_transport_head (pointer) and pn_transport_pending(size).
However to use with Ruby via SWIG the pn_transport_head is wrapped using a
"SWIG_FromCharPtr" which doesn't use a size but truncates the message on the
first null and thereby corrupts the message.
How can I configure SWIG to use SWIG_FromCharPtrAndSize?

View this message in context: http://qpid.2158936.n2.nabble.com/SWIG-Ruby-extracting-messages-from-the-transport-head-tp7624373.html
Sent from the Apache Qpid developers mailing list archive at Nabble.com.

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

View raw message