com.enderak.procol.server.net
Class IncomingMessageHandler

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.enderak.procol.server.net.IncomingMessageHandler
All Implemented Interfaces:
java.lang.Runnable

public class IncomingMessageHandler
extends java.lang.Thread

Maintains the server-side connection between the client and the server

Author:
Justin Dieters

Field Summary
protected  boolean authenticated
           
protected  ProColPacket tempPacket
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
IncomingMessageHandler(ServerConnection connectionIn)
          Constructor for the IncomingMessageHandler object
 
Method Summary
 void close()
          Closes the message handler
 void run()
          Main processing method for the IncomingMessageHandler object.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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
 

Field Detail

tempPacket

protected ProColPacket tempPacket

authenticated

protected boolean authenticated
Constructor Detail

IncomingMessageHandler

public IncomingMessageHandler(ServerConnection connectionIn)
Constructor for the IncomingMessageHandler object

Parameters:
connectionIn - The connection this handler is associated with
Method Detail

run

public void run()
Main processing method for the IncomingMessageHandler object. Waits for new messages and handles them when they arrive

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

close

public void close()
Closes the message handler