networking.client
Class ClientThread

java.lang.Object
  extended by java.lang.Thread
      extended by networking.base.ForkedThread
          extended by networking.base.SocketThread
              extended by networking.client.ClientThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
ClientFileThread, ClientTalkThread

public abstract class ClientThread
extends SocketThread

ClientThread represents a client thread for interaction with servers


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  IConnectInfo m_master
          Master client
 
Fields inherited from class networking.base.SocketThread
s_timeSleep
 
Fields inherited from class networking.base.ForkedThread
CHILD, m_fork, NONE, PARENT
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ClientThread(IConnectInfo master)
          Construct new ClientThread object
 
Method Summary
protected  void init()
          Allocate any required resources
 
Methods inherited from class networking.base.SocketThread
deinit, enque, error, exit, getIn, getOut, processMessage, recv, run1, send, setSocket, setTimeOut, wait
 
Methods inherited from class networking.base.ForkedThread
run
 
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

m_master

protected IConnectInfo m_master
Master client

Constructor Detail

ClientThread

public ClientThread(IConnectInfo master)
Construct new ClientThread object

Parameters:
master - IConnectInfo object
Method Detail

init

protected final void init()
                   throws java.lang.Exception
Description copied from class: ForkedThread
Allocate any required resources

Overrides:
init in class SocketThread
Throws:
java.lang.Exception


Copyright © 2009 Alexey Veremenko. All rights reserved.