Class: Net::SSH::Service::Forward::RemoteNetworkHandler

Class | Net::SSH::Service::Forward::RemoteNetworkHandler
In: | lib/net/ssh/service/forward/remote-network-handler.rb
Parent: | Object

A helper class for managing ports forwarded from a remote host to the local host.

### Methods

new on_close on_eof on_open on_receive

### Public Class methods

new( log, block_size, local_port, local_host='127.0.0.1' )

Instantiate a new RemoteNetworkHandler instance that will forward data to the given local port and host address.

### Public Instance methods

on_close( channel )

Invoked when the channel is closed.

on_eof( channel )

Invoked when the channel indicates that the end is near.

on_open( channel, c_addr, c_port, o_addr, o_port )

Opens a new socket to the local host and port given when the handler was created, and forwards data from the channel to that connection.

on_receive( channel, data )

Invoked when data is received over the channel.

[Validate]