Class: EZMQ::Pusher

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

Overview

Push socket that sends messages but does not receive them.

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:



15
16
17
# File 'lib/ezmq/push.rb', line 15

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