gecco.communication.server
Class DataOutputExchangeHandler
java.lang.Object
|
+--gecco.communication.server.DataOutputExchangeHandler
- All Implemented Interfaces:
- Runnable
- public class DataOutputExchangeHandler
- extends Object
- implements Runnable
a class that listens for incoming messages from the client, receives them,
and tells the server about them
- Author:
- Niklas Hallenfur, Karl Hasselström, Henrik Hägerström, Jon Åslund
|
Method Summary |
void |
abortGame()
called when the client says it wants to abort the game or disconnect |
void |
addMessageToQueue(Message message)
Adds a feature to the MessageToQueue attribute of the
DataOutputExchangeHandler object |
void |
kill()
called whenever someone wants this Thread to die |
void |
run()
Main processing method for the DataOutputExchangeHandler object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pingSyncObject
public Boolean pingSyncObject
- Description of the Field
DataOutputExchangeHandler
public DataOutputExchangeHandler(MessageQueue q,
ClientConnection cc,
Server se,
ClientConnectionHandler cch)
- Constructor for the DataOutputExchangeHandler object
- Parameters:
q - Description of Parametercc - Description of Parameterse - Description of Parametercch - Description of Parameter
addMessageToQueue
public void addMessageToQueue(Message message)
- Adds a feature to the MessageToQueue attribute of the
DataOutputExchangeHandler object
- Parameters:
message - The feature to be added to the MessageToQueue attribute
run
public void run()
- Main processing method for the DataOutputExchangeHandler 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