QJCC homepage

biz.chitec.quarterback.gjsa.server
Class GJSAServer.SocketListeningThread

java.lang.Object
  extended byjava.lang.Thread
      extended bybiz.chitec.quarterback.gjsa.server.GJSAServer.SocketListeningThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
GJSAServer

protected static class GJSAServer.SocketListeningThread
extends java.lang.Thread

Socket listening thread. Gets its socket object, listenes on it, starts up handlers for incoming connections.


Field Summary
private  java.lang.String ads
           
private  int connencode
           
private  boolean continueloop
           
private  boolean isenc
           
private  Logger mess
           
private  java.lang.String mydescription
           
private  java.net.ServerSocket serversocket
           
private  GJSAServer srv
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GJSAServer.SocketListeningThread(GJSAServer srvx, java.net.ServerSocket ssx, int connencodex, boolean isencx)
          Initialize the listening thread.
 
Method Summary
 void run()
          Handle it all.
 void setAdditionalString(java.lang.String adsx)
          Sets the additionalString attribute of the SocketListeningThread object
 void stopMe()
          Initiates stopping this listening thread by closing the socket.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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

srv

private GJSAServer srv

serversocket

private java.net.ServerSocket serversocket

mess

private Logger mess

isenc

private boolean isenc

connencode

private int connencode

mydescription

private java.lang.String mydescription

ads

private java.lang.String ads

continueloop

private boolean continueloop
Constructor Detail

GJSAServer.SocketListeningThread

public GJSAServer.SocketListeningThread(GJSAServer srvx,
                                        java.net.ServerSocket ssx,
                                        int connencodex,
                                        boolean isencx)
Initialize the listening thread.

Parameters:
srvx - Server the thread is belonging to.
ssx - Socket to listen on.
connencodex - Encoding mode of the connection.
isencx - Flag whether the connection is encrypted or not.
Method Detail

setAdditionalString

public void setAdditionalString(java.lang.String adsx)
Sets the additionalString attribute of the SocketListeningThread object

Parameters:
adsx - The new additionalString value

stopMe

public void stopMe()
Initiates stopping this listening thread by closing the socket. Set stopping variable to true and then closes the socket.


run

public void run()
Handle it all.


QJCC homepage