Method: Net::SSH::Connection::Channel#on_eof
- Defined in:
- lib/net/ssh/connection/channel.rb
#on_eof(&block) ⇒ Object
Registers a callback to be invoked when the server indicates that no more data will be sent to the channel (although the channel can still send data to the server). The channel is the sole argument to the callback.
channel.on_eof do |ch|
puts "remote end is done sending data"
end
395 396 397 398 |
# File 'lib/net/ssh/connection/channel.rb', line 395 def on_eof(&block) old, @on_eof = @on_eof, block old end |