Class: OMQ::CLIENT
- Inherits:
-
Socket
- Object
- Socket
- OMQ::CLIENT
- Includes:
- Readable, SingleFrame, Writable
- Defined in:
- lib/omq/client_server.rb
Overview
Asynchronous client socket for the CLIENT/SERVER pattern (ZeroMQ RFC 41).
Round-robins outgoing messages across connected SERVER peers.
Instance Method Summary collapse
-
#initialize(endpoints = nil, linger: Float::INFINITY, backend: nil) ⇒ CLIENT
constructor
Creates a new CLIENT socket.
Constructor Details
#initialize(endpoints = nil, linger: Float::INFINITY, backend: nil) ⇒ CLIENT
Creates a new CLIENT socket.
17 18 19 20 21 |
# File 'lib/omq/client_server.rb', line 17 def initialize(endpoints = nil, linger: Float::INFINITY, backend: nil) init_engine(:CLIENT, backend: backend) @options.linger = linger attach_endpoints(endpoints, default: :connect) end |