Class: HrrRbSsh::Connection::Channel::ChannelType::DirectTcpip
- Inherits:
-
Object
- Object
- HrrRbSsh::Connection::Channel::ChannelType::DirectTcpip
- Defined in:
- lib/rex/proto/ssh/hrr_rb_ssh.rb
Instance Method Summary collapse
Instance Method Details
#start ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/rex/proto/ssh/hrr_rb_ssh.rb', line 53 def start if @connection.permit?(@host_to_connect, @port_to_connect) @socket = Rex::Socket::Tcp.create( 'PeerHost' => @host_to_connect, 'PeerPort' => @port_to_connect, 'Context' => @connection.['Context'], 'Proxies' => @connection.['Proxies'] ) @sender_thread = sender_thread @receiver_thread = receiver_thread else # raise Errno::EACCES end end |