ProProxy Home

proproxy
Class ProAbstractTCPProcessor

java.lang.Object
  |
  +--proproxy.ProAbstractTCPProcessor
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
ProHTTPProcessor, ProTCPProcessor

public abstract class ProAbstractTCPProcessor
extends java.lang.Object
implements java.lang.Runnable

ProAbstractTCPProcessor
The base TCP connection processor. Takes up a new connection, and keeps passing data to and fro till the connection breaks.
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, 31st Oct, 2001
Author:
Tanmay K. Mohapatra

Constructor Summary
ProAbstractTCPProcessor(java.util.Stack cache)
          save the connection properties and the cache stack.
 
Method Summary
 void closeConnection()
           
abstract  void openConnection()
           
abstract  void processConnection()
           
 void processReq(java.net.Socket conn)
          Process a new connection.
 void run()
          The processor thread run routine
 void tunnelProcess()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProAbstractTCPProcessor

public ProAbstractTCPProcessor(java.util.Stack cache)
save the connection properties and the cache stack.
Method Detail

openConnection

public abstract void openConnection()
                             throws java.io.IOException

processConnection

public abstract void processConnection()
                                throws java.io.IOException

tunnelProcess

public void tunnelProcess()
                   throws java.io.IOException

closeConnection

public void closeConnection()

run

public void run()
The processor thread run routine
Specified by:
run in interface java.lang.Runnable

processReq

public void processReq(java.net.Socket conn)
Process a new connection. Create a thread for it ans start it.

ProProxy Home