Class: OMQ::REP
- Defined in:
- lib/omq/req_rep.rb
Overview
REP socket — receive a request, then send one reply (strict alternation).
Constant Summary
Constants included from Writable
Instance Attribute Summary
Attributes inherited from Socket
#engine, #last_tcp_port, #options
Instance Method Summary collapse
-
#initialize(endpoints = nil, linger: 0, backend: nil) ⇒ REP
constructor
A new instance of REP.
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, #init_engine, #inspect, #last_endpoint, #monitor, #peer_connected, #reconnect_enabled=, #set_unbounded, #stop, #subscriber_joined, #unbind
Constructor Details
#initialize(endpoints = nil, linger: 0, backend: nil) ⇒ REP
Returns a new instance of REP.
31 32 33 34 |
# File 'lib/omq/req_rep.rb', line 31 def initialize(endpoints = nil, linger: 0, backend: nil) init_engine(:REP, linger: linger, backend: backend) attach_endpoints(endpoints, default: :bind) end |