zeromq / rbzmq

Ruby binding for 0MQ

Home Page:http://www.zeromq.org/bindings:ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'Socket operation on non-socket' with ruby-2.0 and zmq-3.x

xrl opened this issue · comments

I've got a 'cutting edge' setup and I'm trying running in to the most basic issues. I have a subscribing ZMQ process elsewhere and I'm trying to get a pull socket up and running

irb(main):012:0> ctx = ZMQ::Context.new(1)
=> #<ZMQ::Context:0xb9108358>
irb(main):013:0> socket = ctx.socket(ZMQ::PULL)
=> #<ZMQ::Socket:0xb90fbe3c>
irb(main):014:0> socket.recv
ZMQ::Error: Socket operation on non-socket
  from (irb):14:in `recv'
  from (irb):14
  from /usr/local/bin/irb:12:in `<main>'

Am I using the API incorrectly?