Modifier and Type | Field and Description |
---|---|
private byte[] |
inbuf |
private Socket |
ins |
private DataInputStream |
lin |
private DataOutputStream |
lout |
private byte[] |
outbuf |
private Socket |
outs |
private DataInputStream |
rin |
private DataOutputStream |
rout |
private Thread |
t |
private Thread |
t1 |
private Thread |
t2 |
private byte[] inbuf
private byte[] outbuf
private DataInputStream lin
private DataInputStream rin
private DataOutputStream lout
private DataOutputStream rout
public TCPRelay(Socket s, String outHost, int outPort) throws IOException
TCPRelay
. Creates a relay and starts the
necessary threads to transfer data between the two endpoints.s
- The socket which represents the local endpoint.outHost
- The host of the remote endpoint.outPort
- The port number of the remote endpoint.IOException
- If the relay could not be established.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses