net.anotheria.net.tcp.proxy
Class ProxyConnection
java.lang.Object
net.anotheria.net.shared.server.AbstractConnection
net.anotheria.net.tcp.server.AbstractTCPConnection
net.anotheria.net.tcp.proxy.ProxyConnection
- All Implemented Interfaces:
- Runnable, IConnection
public class ProxyConnection
- extends AbstractTCPConnection
- implements IConnection
A proxy connection which proxies a connection to a tcp server.
This class is yet considered experimental.
- Author:
- lrosenberg
|
Method Summary |
void |
close()
Closes the connection. |
void |
open()
Opens a connection and creates a reader. |
void |
run()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SLEEP_TIME
public static final long SLEEP_TIME
- See Also:
- Constant Field Values
TIMEOUT_SECONDS_IN
public static final long TIMEOUT_SECONDS_IN
- See Also:
- Constant Field Values
TIMEOUT_SECONDS_OUT
public static final long TIMEOUT_SECONDS_OUT
- See Also:
- Constant Field Values
ProxyConnection
public ProxyConnection(Socket inSocket,
String aHost,
int aPort)
close
public void close()
- Description copied from class:
AbstractTCPConnection
- Closes the connection.
- Specified by:
close in interface IConnection- Overrides:
close in class AbstractTCPConnection
open
public void open()
- Description copied from class:
AbstractTCPConnection
- Opens a connection and creates a reader.
- Specified by:
open in interface IConnection- Overrides:
open in class AbstractTCPConnection
run
public void run()
- Specified by:
run in interface Runnable
Copyright © 2010-2013 anotheria.net. All Rights Reserved.