# File lib/net/ssh/connection/driver.rb, line 144 def process( nonblock=false ) process_data_requests if !nonblock || reader_ready? type, response = @session.wait_for_message unless ( dispatcher = MESSAGES[ type ] ) raise Net::SSH::Exception, "Unexpected response type '#{type}', (#{response.inspect})" end dispatcher[:method].bind( self ).call( response ) end self end