Class: EZMQ::Pusher

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

Overview

Push socket that sends messages but does not receive them. It can connect to

multiple Pull sockets, and will load-balance requests to available
destinations.

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

- (Pusher) initialize(mode = :connect, **options)

Creates a new Pusher socket.

Parameters:

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

    a mode for the socket.

  • options (Hash)

    optional parameters.

See Also:



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

def initialize(mode = :connect, **options)
  super mode, ZMQ::PUSH, options
end