Method: Net::SSH::Connection::Channel#process
- Defined in:
- lib/net/ssh/connection/channel.rb
#process ⇒ Object
If an #on_process handler has been set up, this will cause it to be invoked (passing the channel itself as an argument). It also causes all pending output to be enqueued as CHANNEL_DATA packets (see #enqueue_pending_output).
310 311 312 313 314 315 316 317 318 |
# File 'lib/net/ssh/connection/channel.rb', line 310 def process @on_process.call(self) if @on_process enqueue_pending_output if @eof and not @sent_eof and output.empty? and remote_id connection.(Buffer.from(:byte, CHANNEL_EOF, :long, remote_id)) @sent_eof = true end end |