Class: ScripTTY::Net::EventLoop::ListeningSocketWrapper
- Inherits:
-
SocketChannelWrapper
- Object
- SocketChannelWrapper
- ScripTTY::Net::EventLoop::ListeningSocketWrapper
- Defined in:
- lib/scriptty/net/event_loop.rb
Instance Method Summary collapse
Methods inherited from SocketChannelWrapper
#close, #initialize, #local_address, #on_close
Constructor Details
This class inherits a constructor from ScripTTY::Net::EventLoop::SocketChannelWrapper
Instance Method Details
#on_accept(&callback) ⇒ Object
545 546 547 548 |
# File 'lib/scriptty/net/event_loop.rb', line 545 def on_accept(&callback) @master.send(:set_on_accept_callback, @channel, &callback) self end |
#on_accept_error(&callback) ⇒ Object
550 551 552 553 |
# File 'lib/scriptty/net/event_loop.rb', line 550 def on_accept_error(&callback) @master.send(:set_on_accept_error_callback, @channel, &callback) self end |