Class: OMQ::CHANNEL
- Inherits:
-
Socket
- Object
- Socket
- 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.
Instance Method Summary collapse
-
#initialize(endpoints = nil, linger: Float::INFINITY, backend: nil) ⇒ CHANNEL
constructor
Creates a new CHANNEL socket.
Constructor Details
#initialize(endpoints = nil, linger: Float::INFINITY, backend: nil) ⇒ CHANNEL
Creates a new CHANNEL socket.
17 18 19 20 21 |
# File 'lib/omq/channel.rb', line 17 def initialize(endpoints = nil, linger: Float::INFINITY, backend: nil) init_engine(:CHANNEL, backend: backend) @options.linger = linger attach_endpoints(endpoints, default: :connect) end |