|
Purple Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--com.purpletech.net.Proxy
A simple threaded proxy server. Routes data between two hosts transparently. Usage:
java com.purpletech.net.Proxy host [port [localport]]
Defaults:
port=80
localport=80
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Proxy(java.lang.String[] args)
|
|
Proxy(java.lang.String host,
int port)
|
|
Proxy(java.lang.String host,
int portRemote,
int portLocal)
|
|
| Method Summary | |
void |
close()
|
java.lang.String |
getClientString(int i)
|
java.lang.String |
getServerString(int i)
|
boolean |
isFinished(int i)
|
static void |
main(java.lang.String[] args)
|
static java.net.ServerSocket |
newServerSocket(int port)
|
void |
run()
|
void |
waitFor(int i)
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Proxy(java.lang.String[] args)
public Proxy(java.lang.String host,
int portRemote,
int portLocal)
throws java.io.IOException
public Proxy(java.lang.String host,
int port)
throws java.io.IOException
| Method Detail |
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionpublic boolean isFinished(int i)
public void waitFor(int i)
public java.lang.String getClientString(int i)
public java.lang.String getServerString(int i)
public static java.net.ServerSocket newServerSocket(int port)
throws java.io.IOException
java.io.IOExceptionpublic void close()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
Documentation generated March 5 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||