Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.metacosm.framework.server
Class SimpleGameServer  view SimpleGameServer download SimpleGameServer.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.metacosm.framework.server.GameServer
          extended byorg.metacosm.framework.server.SimpleGameServer
All Implemented Interfaces:
java.lang.Runnable

public final class SimpleGameServer
extends GameServer

Server waiting for telnet protocol connections.


Nested Class Summary
(package private)  class GameServer.ConnectionHandler
           
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SimpleGameServer(int port)
          The SimpleGameServer listens to a port.
 
Method Summary
(package private)  Connection getConnection(java.net.Socket socket)
           
 void pleaseStop()
           
 void run()
          Waits for connections.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleGameServer

public SimpleGameServer(int port)
The SimpleGameServer listens to a port.

Method Detail

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()