proproxy
Class ProTCPListener
java.lang.Object
|
+--proproxy.ProAbstractTCPListener
|
+--proproxy.ProTCPListener
- All Implemented Interfaces:
- java.lang.Runnable
- public class ProTCPListener
- extends ProAbstractTCPListener
ProTCPListener
The TCP connection listener. Waits for a new connection, creates a new
ProTCPProcessor for each new connection. ProTCPProcessors are cached in a
stack. Each ProTCPProcessor puts itself back to the cache when it is done
so that it can be used for the next request.
You are free to use this code and to make modifications provided
this notice is retained.
If you found this useful, please add a note of acknowledgement to my
guestbook.
If you would like to report a bug or suggest some improvements,
you are most welcome. I will be happy to help you use this piece of code.
- Version:
- 1.10, 28th Jan, 2001
- Author:
- Tanmay K. Mohapatra
Constructor Summary |
ProTCPListener(int iListenPort,
java.lang.String sCascadeServer,
int iCascadePort,
java.lang.String sIncludeList,
java.lang.String sExcludeList)
Save the connection parameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProTCPListener
public ProTCPListener(int iListenPort,
java.lang.String sCascadeServer,
int iCascadePort,
java.lang.String sIncludeList,
java.lang.String sExcludeList)
- Save the connection parameters
createAndProcessRequest
public void createAndProcessRequest(java.net.Socket newSocket)
- Overrides:
createAndProcessRequest
in class ProAbstractTCPListener
processRequest
public void processRequest(java.lang.Object processor,
java.net.Socket newSocket)
- Overrides:
processRequest
in class ProAbstractTCPListener