Class: OMQ::CHANNEL
- Includes:
- Readable, SingleFrame, Writable
- Defined in:
- lib/omq/channel.rb
Overview
Exclusive 1-to-1 bidirectional socket (ZeroMQ RFC 52).
Allows exactly one peer connection. Both sides can send and receive.
Constant Summary
Constants included from Writable
Instance Attribute Summary
Attributes inherited from Socket
Instance Method Summary collapse
-
#initialize(endpoints = nil, linger: Float::INFINITY, backend: nil) ⇒ CHANNEL
constructor
Creates a new CHANNEL socket.
Methods included from SingleFrame
Methods included from Writable
Methods included from QueueWritable
Methods included from Readable
Methods included from QueueReadable
Methods inherited from Socket
#all_peers_gone, #attach_endpoints, bind, #bind, #close, #close_read, connect, #connect, #connection_count, #disconnect, #finalize_init, #init_engine, #inspect, #monitor, #peer_connected, #reconnect_enabled=, #set_unbounded, #stop, #subscriber_joined, #unbind
Constructor Details
#initialize(endpoints = nil, linger: Float::INFINITY, backend: nil) ⇒ CHANNEL
Creates a new CHANNEL socket.
26 27 28 29 30 |
# File 'lib/omq/channel.rb', line 26 def initialize(endpoints = nil, linger: Float::INFINITY, backend: nil) init_engine(:CHANNEL, backend: backend) @options.linger = linger attach_endpoints(endpoints, default: :connect) end |