java.lang.Object
java.lang.Thread
org.metacosm.framework.server.GameServer
org.metacosm.framework.server.SimpleGameServer
- All Implemented Interfaces:
- java.lang.Runnable
- public final class SimpleGameServer
- extends GameServer
Server waiting for telnet protocol connections.
| Nested classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
|
Constructor Summary |
SimpleGameServer(int port)
The SimpleGameServer listens to a port. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
SimpleGameServer
public SimpleGameServer(int port)
- The SimpleGameServer listens to a port.
getConnection
Connection getConnection(java.net.Socket socket)
- Specified by:
getConnection in class GameServer
run
public void run()
- Waits for connections. Create a Connection when a connection occurred.
It uses the logger.
pleaseStop
public void pleaseStop()