Package net.sf.colossus.client
Interface IServerConnection
- All Known Implementing Classes:
SocketClientThread
public interface IServerConnection
Generic type of connection to the server. Right now we have only
Socket-based connection (SocketClientThread); but the ClientThread
should become unaware of the type of connection, only do the
messageString-to-method-call and vice-versa translation,
and the connection specific parts (read/write to socket or via e.g.
a queue) to the ServerConnection class(es).
-
Method Summary
Modifier and TypeMethodDescriptionint
void
int
boolean
void
requestSyncDelta
(int lastRcvdMsgNr, int syncCounter) void
void
void
stopSocketClientThread
(boolean sendDispose) void
updatePlayerName
(String playerName)
-
Method Details
-
setClient
-
getReasonFail
String getReasonFail() -
getVariantNameForInit
String getVariantNameForInit() -
getPreliminaryPlayerNames
Collection<String> getPreliminaryPlayerNames() -
startThread
void startThread() -
updatePlayerName
-
getIServer
IServer getIServer() -
isAlreadyDown
boolean isAlreadyDown() -
stopSocketClientThread
void stopSocketClientThread(boolean sendDispose) -
enforcedConnectionException
void enforcedConnectionException() -
requestSyncDelta
void requestSyncDelta(int lastRcvdMsgNr, int syncCounter) -
abandonAndGetMessageCounter
int abandonAndGetMessageCounter() -
getDisposedQueueLen
int getDisposedQueueLen()
-