Enters the main communication loop. This processes events occuring over the channel. If a block is given, the loop will continue for as long as the block returns true. Otherwise, the loop continues until there are no more open channels. (See Net::SSH::Connection::Driver#loop).
Source Code
# File net/ssh/session.rb, line 184 def loop( &block ) sanity_check @connection.loop(&block) end
<code/>and<pre/>for code samples.