Class: Bundesstrasse::ForwarderDevice

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) ⇒ 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(SubSocket)
  backend = context.socket(PubSocket)
  new(frontend, backend)
end