synapsi.net
Class UpdateThread


java.lang.Object

  |

  +--java.lang.Thread

        |

        +--synapsi.net.UpdateThread


public class UpdateThread
extends java.lang.Thread

Implements a thread to handle updating one client. Uses PUP-protocol.


Field Summary
 boolean stop
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
UpdateThread(MainForNet main, DataClient client, DataVersion version)
          Constructs and initializes UpdateThread
 
Method Summary
 void run()
          Mainloop does updating using PUP-protocol
 void setDebug(int debug)
          Set debug level
 
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

stop


public boolean stop
Constructor Detail

UpdateThread


public UpdateThread(MainForNet main,
                    DataClient client,
                    DataVersion version)
Constructs and initializes UpdateThread
Parameters:
main - ServerMain -class creating this instance
client - client to be updated
version - version of the package to be updated
Method Detail

setDebug


public void setDebug(int debug)
Set debug level
Parameters:
debug - debug level

run


public void run()
Mainloop does updating using PUP-protocol
Overrides:
run in class java.lang.Thread