Class: Bundesstrasse::ForwarderDevice
- Defined in:
- lib/bundesstrasse/devices.rb
Instance Attribute Summary
Attributes inherited from Device
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(frontend, backend) ⇒ ForwarderDevice
constructor
A new instance of ForwarderDevice.
Methods inherited from Device
Methods included from Errors
#errno, #error_check, #error_string
Constructor Details
#initialize(frontend, backend) ⇒ ForwarderDevice
Returns a new instance of ForwarderDevice.
21 22 23 |
# File 'lib/bundesstrasse/devices.rb', line 21 def initialize(frontend, backend) super(ZMQ::FORWARDER, frontend, backend) end |
Class Method Details
.create(context) ⇒ Object
25 26 27 28 29 |
# File 'lib/bundesstrasse/devices.rb', line 25 def self.create(context) frontend = context.socket(ZMQ::SUB) backend = context.socket(ZMQ::PUB) new(frontend, backend) end |