zeromq / rbzmq

Ruby binding for 0MQ
http://www.zeromq.org/bindings:ruby
247 stars 43 forks source link

[zeromq3] the first parameter of zmq_msg_send and zmq_msg_recv is the zmq_msg_t #30

Open miniway opened 11 years ago

miniway commented 11 years ago

I'm working on zeromq3 branch,

The parameter order seems to be wrong at zmq_msg_send and zmq_msg_recv.

The first parameter of zmq_msg_send and zmq_msg_recv should be the zmq_msg_t

https://github.com/zeromq/zeromq3-x/blob/master/src/zmq.cpp#L544

jtobin commented 11 years ago

I can confirm that fixing this clears up the 'Socket operation on non-socket' error I complained about on another issue.