blob: 8fece8eb4eb97bdc8028195a4ae73e41d1c2e76d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
module Net ; module SSH ; module Server
module ChannelExtensions
def send_eof_and_close
eof!
_flush
close
end
def send_reply(result)
msg_type = result ? Net::SSH::Connection::Constants::CHANNEL_SUCCESS : Net::SSH::Connection::Constants::CHANNEL_FAILURE
msg = Net::SSH::Buffer.from(:byte, msg_type, :long, remote_id)
connection.send_message(msg)
end
end
end ; end ; end
|