de.karb.hitcryptoproxy
Class HitCryptoProxyServer.ProxyWorker

java.lang.Object
  extended by de.karb.hitcryptoproxy.HitCryptoProxyServer.ProxyWorker
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
HitCryptoProxyServer

public class HitCryptoProxyServer.ProxyWorker
extends java.lang.Object
implements java.lang.Runnable

Listens for connections to its server socket to start a new ClientWorker thread This class implements Runnable. Two instances are started in a thread, one for the test mode and one for the production mode.

Author:
Schildmann@karb.de

Constructor Summary
HitCryptoProxyServer.ProxyWorker(Configuration.Mode pMode)
          Constructor of the runnable ProxyWorker
 
Method Summary
 void run()
          When ProxyWorker is used to create a thread, starting the thread causes this method to be called in that separately executing thread.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HitCryptoProxyServer.ProxyWorker

public HitCryptoProxyServer.ProxyWorker(Configuration.Mode pMode)
                                 throws java.net.SocketException
Constructor of the runnable ProxyWorker

Parameters:
pMode - the mode production or test
Throws:
java.net.SocketException - if there is an error in the underlying protocol, such as a TCP error.
Method Detail

run

public void run()
When ProxyWorker is used to create a thread, starting the thread causes this method to be called in that separately executing thread. This method listens to to server socket and starts a ClientWorker thread when a connection is accepted

Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()