LectureGame.Core
Class ConnectionProber
java.lang.Object
LectureGame.Core.ConnectionProber
- All Implemented Interfaces:
- java.lang.Runnable
class ConnectionProber
- extends java.lang.Object
- implements java.lang.Runnable
Created by IntelliJ IDEA.
User: olekrst
Date: 22.mar.2007
Time: 13:55:49
This class must be run as a thread. Watches the connected clients and tests to check for problems. Ensures that
clients which are not disconnected gracefully are disconnected and terminated. Current implementation runs this check
every 2000 ms.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
alive
private boolean alive
connections
private java.util.Vector<StudentClient> connections
netkeeper
private NetworkConnectionKeeper netkeeper
ConnectionProber
public ConnectionProber()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
setNetworkConnectionKeeper
public void setNetworkConnectionKeeper(NetworkConnectionKeeper n)
kill
public void kill()