|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.ccg.net.tcp.ServerThread
class ServerThread
| 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
boolean _Shutdown
ServerSocket _ServerSocket
int _Port
| Constructor Detail |
|---|
ServerThread(Server s)
| Method Detail |
|---|
public void run()
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:
TCP port to
listen to for incoming connections.
ServerSocket for the specified port and
starts accepting incoming TCP connections.
socket
options, these options will be applied to the new connection.
count is updated.
connection will be passed to the Server.newConnection(java.net.Socket)
method which derived classes can use to perform their service.
run in interface Runnablerun in class ThreadServer.newConnection(java.net.Socket)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||