|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--thegame.shared.GameConnection | +--thegame.client.GameClientConnection
The connection to GameServer on the GameClient side.
Field Summary | |
protected GameClient |
gameClient
The GameClient that gets the received messages. |
Fields inherited from class thegame.shared.GameConnection |
in, isRunning, out, socket |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
GameClientConnection(java.net.Socket socket,
GameClient gameClient)
Constructs a GameClientConnection on the specified socket and binds it to the specified GameClient. |
Method Summary | |
void |
run()
|
Methods inherited from class thegame.shared.GameConnection |
close, getMessageBody, getMessageContentsAs1DIntArray, getMessageContentsAs1DStringArray, getMessageContentsAs2DIntArray, getMessageContentsAsBoolean, getMessageID, getReadyToSendForm, send, send, send, send, send, send, setRunning |
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 |
Field Detail |
protected GameClient gameClient
Constructor Detail |
public GameClientConnection(java.net.Socket socket, GameClient gameClient) throws java.io.IOException
socket
- the socket to be usedgameClient
- the GameClient the GameClientConnection sends messages tojava.io.IOException
- if an I/O error occurs when constructing the superclassMethod Detail |
public void run()
run
in class java.lang.Thread
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |