You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Elliot Gregory <eg...@uk.ibm.com> on 2015/05/12 09:54:49 UTC

SWIG & Ruby - extracting messages from the transport head

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