swpchat.client
Class OpenServer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--swpchat.client.OpenServer
All Implemented Interfaces:
java.lang.Runnable

public class OpenServer
extends java.lang.Thread

Class to open a ServerSocket .


Field Summary
private  ClientControls clientControls
           
private static java.lang.String CLS
           
private  boolean continueRunning
           
private  int fileCounter
           
private  FileProtocolHandler protocolHandler
           
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ
 
Constructor Summary
OpenServer(ClientControls clientControls)
           
 
Method Summary
 void addFileRequest()
          increase FileRequestCounter
 void endServer()
          stop ServerThread
 void removeFileRequest()
          decrease fileRequestCounter
 void run()
           
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLS

private static final java.lang.String CLS

continueRunning

private boolean continueRunning

fileCounter

private int fileCounter

protocolHandler

private FileProtocolHandler protocolHandler

clientControls

private ClientControls clientControls
Constructor Detail

OpenServer

public OpenServer(ClientControls clientControls)
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread

endServer

public void endServer()
stop ServerThread

removeFileRequest

public void removeFileRequest()
decrease fileRequestCounter

addFileRequest

public void addFileRequest()
increase FileRequestCounter