|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object network.Server
Listens for connection requests.
Constructor Summary | |
Server(Network network)
Constructs a new Server for the given Network. |
Method Summary | |
void |
run()
While the thread is running, listen for incoming connection requests on port Network.PORT and notifies the Network so it can create a connection. |
void |
start()
Start the Server thread. |
void |
stop()
Stop the Server thread. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Server(Network network) throws java.io.IOException
network
- A Network to notify about incoming connection requests.
java.io.IOException
- Probably can't listen on the given port.Method Detail |
public void start()
public void stop()
public void run()
run
in interface java.lang.Runnable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |