Sha256: 4d5bb3798ba6ca01fa99a0404d7bbccef2b28ae8315143a47fc754625a7c8a9a

Contents?: true

Size: 353 Bytes

Versions: 28

Compression:

Stored size: 353 Bytes

Contents

# encoding: utf-8

class ZMQ::DefaultHandler < ZMQ::Handler

  # A default / blanket pollitem callback handler for when a socket or IO is registered on a ZMQ::Loop instance.
  #
  # XXX: Likely a massive fail for some socket / IO pairs as a default - look into removing this.

  def on_readable
    p recv
  end

  def on_writable
    send("")
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rbczmq-1.7.9 lib/zmq/default_handler.rb
rbczmq-1.7.8 lib/zmq/default_handler.rb
rbczmq-1.7.7 lib/zmq/default_handler.rb
rbczmq-1.7.6 lib/zmq/default_handler.rb
rbczmq-1.7.5 lib/zmq/default_handler.rb
rbczmq-1.7.4 lib/zmq/default_handler.rb
rbczmq-1.7.3 lib/zmq/default_handler.rb
rbczmq-1.7.2 lib/zmq/default_handler.rb
rbczmq-1.7.1 lib/zmq/default_handler.rb
rbczmq-1.7.0 lib/zmq/default_handler.rb
rbczmq-1.6.4 lib/zmq/default_handler.rb
rbczmq-1.6.2 lib/zmq/default_handler.rb
rbczmq-1.6 lib/zmq/default_handler.rb
rbczmq-1.5 lib/zmq/default_handler.rb
rbczmq-1.4 lib/zmq/default_handler.rb
rbczmq-1.3 lib/zmq/default_handler.rb
rbczmq-1.2 lib/zmq/default_handler.rb
rbczmq-1.1 lib/zmq/default_handler.rb
rbczmq-1.0 lib/zmq/default_handler.rb
rbczmq-0.9 lib/zmq/default_handler.rb