gecco.communication.server
Class DataInputExchangeHandler

java.lang.Object
  |
  +--gecco.communication.server.DataInputExchangeHandler
All Implemented Interfaces:
Runnable

public class DataInputExchangeHandler
extends Object
implements Runnable

a class that sends messages from the server, in the send queue

Author:
Niklas Hallenfur, Karl Hasselström, Henrik Hägerström, Jon Åslund

Constructor Summary
DataInputExchangeHandler(ClientConnection cc, Server se, ClientConnectionHandler cch, DataOutputExchangeHandler outputDEH)
          Constructor for the DataInputExchangeHandler object
 
Method Summary
 void abortGame()
          called when the client says it wants to abort the game or disconnect
 void kill()
          called whenever someone wants this Thread to die
 void run()
          Main processing method for the DataInputExchangeHandler object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataInputExchangeHandler

public DataInputExchangeHandler(ClientConnection cc,
                                Server se,
                                ClientConnectionHandler cch,
                                DataOutputExchangeHandler outputDEH)
Constructor for the DataInputExchangeHandler object
Parameters:
cc - Description of Parameter
se - Description of Parameter
cch - Description of Parameter
outputDEH - Description of Parameter
Method Detail

run

public void run()
Main processing method for the DataInputExchangeHandler object
Specified by:
run in interface Runnable

abortGame

public void abortGame()
called when the client says it wants to abort the game or disconnect

kill

public void kill()
called whenever someone wants this Thread to die