|
ProProxy Home | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--proproxy.ProUDPListener
ProUDPListener
The UDP connection listener. Waits for a new UDP packet, changes the target
host and port and relays it again.
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.
Field Summary | |
int |
iNumRequests
|
Constructor Summary | |
ProUDPListener(int iListenPort,
java.lang.String sCascadeServer,
int iCascadePort,
java.lang.String sIncludeList,
java.lang.String sExcludeList)
Save the connection parameters |
Method Summary | |
boolean |
isListening()
|
void |
run()
The listener loop. |
void |
startListening()
If listener thread is stopped and not listening, start it. |
void |
stopListening()
If listener thread is active and listening, stop it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int iNumRequests
Constructor Detail |
public ProUDPListener(int iListenPort, java.lang.String sCascadeServer, int iCascadePort, java.lang.String sIncludeList, java.lang.String sExcludeList)
Method Detail |
public void run()
run
in interface java.lang.Runnable
public void startListening()
public void stopListening()
public boolean isListening()
|
ProProxy Home | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |