|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectks.common.network.SimpleServerConnection
Base class to manage the server-side of a Socket connection.
| Method Summary | |
void |
close()
|
CommunicationAgent |
getAgent()
|
abstract void |
handleSession(CommunicationAgent agent)
Subclasses should provide their own handler for new data appearin on the input |
boolean |
isConnected()
|
boolean |
isRunning()
|
void |
killServer()
Forces a manual shutdown of the original ServerSocket. |
void |
run()
|
void |
shutdown()
Cleanly shutdown connection. |
boolean |
start()
Start listening on the default port. |
boolean |
start(int thePort)
Start listening on the given port. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public CommunicationAgent getAgent()
public void close()
public abstract void handleSession(CommunicationAgent agent)
agent - Agent managing the communication session.public boolean isConnected()
public boolean isRunning()
public void killServer()
public void run()
run in interface java.lang.Runnablepublic void shutdown()
public boolean start()
public boolean start(int thePort)
thePort -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||