[zeromq-dev] Ruby zmq.send error
Conrad Steenberg
conrad.steenberg at gmail.com
Thu Jul 30 07:24:00 CEST 2009
Hi,
I'm trying to send a message using the ruby binding with
zmq.send(@eid, msg, msg.length, ZMQ_TRUE)
and get the following:
test.rb:76:in `send': string contains null byte (ArgumentError)
In my mind that's a bug :-)
>From librbzmq.cpp:142:
memcpy (msg.data (), (void*) StringValueCStr (data_),
(size_t) NUM2ULL (size_));
Is there an alternative to StringValueCStr(data_) to create the data for
the message?
Thanks,
Conrad
More information about the zeromq-dev
mailing list