Class: EZMQ::Puller

Inherits:
Socket show all
Defined in:
lib/ezmq/pull.rb

Overview

Pull socket that receives messages but does not send them. Pullers can

connect to multiple Pushers, and will fair-queue messages from available
sources.

Instance Attribute Summary

Attributes inherited from Socket

#context, #decode, #encode, #socket

Instance Method Summary (collapse)

Methods inherited from Socket

#connect, #listen, #receive, #send

Constructor Details

- (Puller) initialize(mode = :bind, **options)

Creates a new Puller socket.

Parameters:

  • mode (:bind, :connect) (defaults to: :bind)

    a mode for the socket.

  • options (Hash)

    optional parameters.

See Also:



17
18
19
# File 'lib/ezmq/pull.rb', line 17

def initialize(mode = :bind, **options)
  super mode, ZMQ::PULL, options
end