Class: Bundesstrasse::StreamerDevice

Inherits:
Device
  • Object
show all
Defined in:
lib/bundesstrasse/devices.rb

Instance Attribute Summary

Attributes inherited from Device

#backend, #frontend

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Device

#start

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