soc.server
Class SOCClientData.SOCCDCliVersionTask
java.lang.Object
java.util.TimerTask
soc.server.SOCClientData.SOCCDCliVersionTask
- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- SOCClientData
private static class SOCClientData.SOCCDCliVersionTask
- extends java.util.TimerTask
TimerTask at client connect, to guess the client version
if it isn't sent soon enough. (assume it's too old to tell us)
When timer fires, assume client's version will not be sent.
Set it to SOCServer.CLI_VERSION_ASSUMED_GUESS
.
(Don't set the version if cliConn.isVersionKnown() at that point.)
Ask server to send the list of games.
The version can be corrected later if necessary.
- Since:
- 1.1.06
Method Summary |
void |
run()
Called when timer fires. |
Methods inherited from class java.util.TimerTask |
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
srv
private SOCServer srv
cliData
private SOCClientData cliData
cliConn
private StringConnection cliConn
SOCClientData.SOCCDCliVersionTask
public SOCClientData.SOCCDCliVersionTask(SOCServer sr,
SOCClientData cd,
StringConnection con)
run
public void run()
- Called when timer fires. See class description for action taken.
- Specified by:
run
in interface java.lang.Runnable
- Specified by:
run
in class java.util.TimerTask