kiwi.io
Class TCPRelay
java.lang.Object
|
+--kiwi.io.TCPRelay
- public class TCPRelay
- extends Object
This class represents a TCP relay; it establishes a full duplex connection
between two communications endpoints.
- Version:
- 1.0.1 (10/98)
- Author:
- Mark Lindner, PING Software Group
Method Summary |
void |
dispose()
Dispose of the relay. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TCPRelay
public TCPRelay(Socket s,
String outHost,
int outPort)
throws IOException
- Construct a new
TCPRelay
. Creates a relay and starts the
necessary threads to transfer data between the two endpoints.
- Parameters:
s
- The socket which represents the local endpoint.outHost
- The host of the remote endpoint.outPort
- The port number of the remote endpoint.- Throws:
- IOException - If the relay could not be established.
dispose
public void dispose()
- Dispose of the relay. Closes the streams.