Module: Dcmgr::NodeModules::EventFdConnection
- Defined in:
- lib/dcmgr/node_modules/service_openflow.rb
Overview
Event handler glue for Trema.
Instance Method Summary collapse
- #initialize(connection) ⇒ Object
- #notify_readable ⇒ Object
- #notify_writable ⇒ Object
- #unbind ⇒ Object
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_readable ⇒ Object
601 602 603 |
# File 'lib/dcmgr/node_modules/service_openflow.rb', line 601 def notify_readable @connection.notify_readable end |
#notify_writable ⇒ Object
605 606 607 |
# File 'lib/dcmgr/node_modules/service_openflow.rb', line 605 def notify_writable @connection.notify_writable end |
#unbind ⇒ Object
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 |