Class: Rex::Proto::Ssh::ChannelRelay
- Inherits:
-
Object
- Object
- Rex::Proto::Ssh::ChannelRelay
- Includes:
- IO::SocketAbstraction
- Defined in:
- lib/rex/proto/ssh/connection.rb
Overview
Create a monitored relay between channel IOs and external FD-like objects
Instance Method Summary collapse
-
#initialize(src, dst, threadname = "SshChannelMonitorRemote") ⇒ ChannelRelay
constructor
A new instance of ChannelRelay.
- #initialize_abstraction(src, dst, threadname) ⇒ Object
Constructor Details
#initialize(src, dst, threadname = "SshChannelMonitorRemote") ⇒ ChannelRelay
Returns a new instance of ChannelRelay.
158 159 160 |
# File 'lib/rex/proto/ssh/connection.rb', line 158 def initialize(src, dst, threadname = "SshChannelMonitorRemote") initialize_abstraction(src, dst) end |
Instance Method Details
#initialize_abstraction(src, dst, threadname) ⇒ Object
162 163 164 165 166 |
# File 'lib/rex/proto/ssh/connection.rb', line 162 def initialize_abstraction(src, dst, threadname) self.rsock = src self.lsock = dst monitor_rsock(threadname) end |