com.ccg.net.tcp
Class ServerThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.ccg.net.tcp.ServerThread
All Implemented Interfaces:
Runnable

 class ServerThread
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  int _Port
           
(package private)  Server _Server
           
(package private)  ServerSocket _ServerSocket
           
(package private)  boolean _Shutdown
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ServerThread(Server s)
           
 
Method Summary
 void run()
          Background method to accept incoming connections.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

_Server

Server _Server

_Shutdown

boolean _Shutdown

_ServerSocket

ServerSocket _ServerSocket

_Port

int _Port
Constructor Detail

ServerThread

ServerThread(Server s)
Method Detail

run

public void run()
Background method to accept incoming connections. This method is ment to be run as a background thread which accepts incoming connections. One should use the Server.start() method to start this method running in the background. This method does the following:

Specified by:
run in interface Runnable
Overrides:
run in class Thread
Since:
1.0
See Also:
Server.newConnection(java.net.Socket)


Copyright 1998-1998-2006 null. All Rights Reserved.