fate.network
Class ServerThread


java.lang.Object

  |

  +--java.lang.Thread

        |

        +--fate.network.ServerThread


public class ServerThread
extends java.lang.Thread

Handles verification and message processing of individual clients.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ServerThread(ServerConnection parent, java.net.Socket socket, MapPlayerInfo mapPlayerInfo)
          Creates new ServerThread
 
Method Summary
 java.io.ObjectOutputStream getOutputStream()
          Returns the socket associated with this ServerThread
 void run()
          Continues reading messages until an IO expection happens
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

ServerThread


public ServerThread(ServerConnection parent,
                    java.net.Socket socket,
                    MapPlayerInfo mapPlayerInfo)
             throws java.io.IOException
Creates new ServerThread
Method Detail

getOutputStream


public java.io.ObjectOutputStream getOutputStream()
Returns the socket associated with this ServerThread

run


public void run()
Continues reading messages until an IO expection happens
Overrides:
run in class java.lang.Thread