|
JAPI 0.9.0 Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.japi.net.Forwarder
public class Forwarder
This class forwards incoming TCP connections to another host and port.
| Constructor Summary | |
|---|---|
Forwarder(Socket s1,
Socket s2)
Create a new Forwarder. |
|
| Method Summary | |
|---|---|
static void |
main(String... args)
Main program. |
void |
run()
When an object implementing interface Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |
void |
start()
Start the forwarder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Forwarder(Socket s1,
Socket s2)
s1 - first sockets2 - second socket| Method Detail |
|---|
public static void main(String... args)
throws IOException
args - command line arguments (currently ignored)
IOExceptionpublic void start()
public void run()
Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread.
The general contract of the method run is that it may
take any action whatsoever.
run in interface RunnableThread.run()
|
JAPI Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||