Class: Net::SSH::Service::Forward::LocalNetworkHandler

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

new( log, block_size, client )

Create a new LocalNetworkHandler for the given client connection.

### Public Instance methods

on_eof( channel )

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

on_receive( channel, data )

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

process( channel )

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

[Validate]