net.anotheria.net.tcp.proxy
Class ProxyConnection

java.lang.Object
  extended by net.anotheria.net.shared.server.AbstractConnection
      extended by net.anotheria.net.tcp.server.AbstractTCPConnection
          extended by 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

Field Summary
static long SLEEP_TIME
           
static long TIMEOUT_SECONDS_IN
           
static long TIMEOUT_SECONDS_OUT
           
 
Constructor Summary
ProxyConnection(Socket inSocket, String aHost, int aPort)
           
 
Method Summary
 void close()
          Closes the connection.
 void open()
          Opens a connection and creates a reader.
 void run()
           
 
Methods inherited from class net.anotheria.net.tcp.server.AbstractTCPConnection
getSocket, setSocket
 
Methods inherited from class net.anotheria.net.shared.server.AbstractConnection
addConnectionListener, removeConnectionListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.anotheria.net.shared.server.IConnection
addConnectionListener, removeConnectionListener
 

Field Detail

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
Constructor Detail

ProxyConnection

public ProxyConnection(Socket inSocket,
                       String aHost,
                       int aPort)
Method Detail

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.