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

This is a utility class used internally by Forward::Driver. It manages the network server instance for each locally forwarded port, and is passed as the handler to Driver#direct_channel by Forward::Driver#forward_local. Other clients may desire to extend this class and pass the modified class to Forward::Driver#direct_channel for their own purposes, but in general this class will rarely be used outside of Forward::Driver.

Methods

new   on_eof   on_receive   process  

Public Class methods

Create a new LocalNetworkHandler for the given client connection.

Public Instance methods

Invoked when the remote end of the channel will no longer be sending data. It may still receive data, however.

Invoked when data is recieved from the channel. This method just sends the data to the client connection.

Called to process the channel in a loop. It will repeatedly read from the client and send the results across the channel.

[Validate]