Module: Dcmgr::NodeModules::EventFdConnection

Defined in:
lib/dcmgr/node_modules/service_openflow.rb

Overview

Event handler glue for Trema.

Instance Method Summary collapse

Instance Method Details

#initialize(connection) ⇒ Object



597
598
599
# File 'lib/dcmgr/node_modules/service_openflow.rb', line 597

def initialize connection
  @connection = connection
end

#notify_readableObject



601
602
603
# File 'lib/dcmgr/node_modules/service_openflow.rb', line 601

def notify_readable
  @connection.notify_readable
end

#notify_writableObject



605
606
607
# File 'lib/dcmgr/node_modules/service_openflow.rb', line 605

def notify_writable
  @connection.notify_writable
end

#unbindObject



609
610
611
612
613
614
# File 'lib/dcmgr/node_modules/service_openflow.rb', line 609

def unbind
  # EM.next_tick do
  #   # socket is detached from the eventloop, but still open
  #   data = @io.read
  # end
end