Logo Search packages:      
Sourcecode: jenkins-trilead-ssh2 version File versions  Download package

Public Member Functions | Package Functions | Package Attributes

com::trilead::ssh2::channel::StreamForwarder Class Reference

Collaboration diagram for com::trilead::ssh2::channel::StreamForwarder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void run ()

Package Functions

 StreamForwarder (Channel c, StreamForwarder sibling, Socket s, InputStream is, OutputStream os, String mode) throws IOException

Package Attributes

byte[] buffer = new byte[Channel.CHANNEL_BUFFER_SIZE]
Channel c
InputStream is
String mode
OutputStream os
Socket s
StreamForwarder sibling

Detailed Description

A StreamForwarder forwards data between two given streams. If two StreamForwarder threads are used (one for each direction) then one can be configured to shutdown the underlying channel/socket if both threads have finished forwarding (EOF).

Author:
Christian Plattner, plattner@trilead.com
Version:
Id:
StreamForwarder.java,v 1.1 2007/10/15 12:49:56 cplattne Exp

Definition at line 18 of file StreamForwarder.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index