Class: Bundesstrasse::StreamerDevice
- Defined in:
- lib/bundesstrasse/devices.rb
Instance Attribute Summary
Attributes inherited from Device
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(frontend, backend) ⇒ StreamerDevice
constructor
A new instance of StreamerDevice.
Methods inherited from Device
Methods included from Errors
#errno, #error_check, #error_string
Constructor Details
#initialize(frontend, backend) ⇒ StreamerDevice
Returns a new instance of StreamerDevice.
33 34 35 |
# File 'lib/bundesstrasse/devices.rb', line 33 def initialize(frontend, backend) super(ZMQ::STREAMER, frontend, backend) end |
Class Method Details
.create(context) ⇒ Object
37 38 39 40 41 |
# File 'lib/bundesstrasse/devices.rb', line 37 def self.create(context) frontend = context.socket(ZMQ::PULL) backend = context.socket(ZMQ::PUSH) new(frontend, backend) end |