Class: Net::SSH::Connection::EventLoop

Inherits:
Object
  • Object
show all
Defined in:
lib/evented-ssh/connection/event_loop.rb

Instance Method Summary collapse

Instance Method Details

#process(wait = nil, &block) ⇒ Object

Same as Net::SSH except it never tries to wait on IO. This basically always blocks the current fiber now until a packet is available. Connection#loop is called in a dedicated fiber who’s purpose is to distribute the packets as they come in.



11
12
13
14
# File 'lib/evented-ssh/connection/event_loop.rb', line 11

def process(wait = nil, &block)
    return false unless ev_preprocess(&block)
    #ev_select_and_postprocess(wait)
end