faa.tg.asdi
Class ClientConnection

java.lang.Object
  extended by java.lang.Thread
      extended by faa.tg.asdi.ClientConnection
All Implemented Interfaces:
java.lang.Runnable

public class ClientConnection
extends java.lang.Thread


 A ClientConnection is constructed by TmfServer for each client socket connect.
 The ClientConnection opens the input and output steams.
 TmfServer will call it's writeObject() method.

 Why does it extend Thread? dw....
 Why does it open a buffered reader?
  
 
See the source: ClientConnection.java

Version:
$Id: ClientConnection.java,v 1.4 2007/10/25 12:35:56 warb Exp $
Author:
Michael E. Ross, Dan Warburton FAA/AJP-
See Also:
- which normally constructs these

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
protected  java.io.ObjectInputStream ois
           
protected  java.io.ObjectOutputStream oos
           
protected  java.net.Socket socket
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ClientConnection(java.net.Socket socket)
           
 
Method Summary
 void reset()
           
 void writeObject(AsdiMessage asdiMessage)
           
 void writeObject(AsdiOutputMessage asdiOutputMessage)
           
 void writeObject(java.lang.Object object)
           
 
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, run, 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

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

socket

protected java.net.Socket socket

ois

protected java.io.ObjectInputStream ois

oos

protected java.io.ObjectOutputStream oos
Constructor Detail

ClientConnection

public ClientConnection(java.net.Socket socket)
                 throws java.io.IOException
Throws:
java.io.IOException
Method Detail

reset

public void reset()
           throws java.io.IOException
Throws:
java.io.IOException

writeObject

public void writeObject(AsdiOutputMessage asdiOutputMessage)
                 throws java.io.IOException
Throws:
java.io.IOException

writeObject

public void writeObject(AsdiMessage asdiMessage)
                 throws java.io.IOException
Throws:
java.io.IOException

writeObject

public void writeObject(java.lang.Object object)
                 throws java.io.IOException
Throws:
java.io.IOException