org.shlublu.javax.io
Class IOStreamCrossedConnector

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.shlublu.javax.lang.BasicThread
              |
              +--org.shlublu.javax.io.IOStreamCrossedConnector
All Implemented Interfaces:
java.lang.Runnable

public class IOStreamCrossedConnector
extends BasicThread

Creation : 28 sept 2001 This class id dedicated to cross-connect couple of streams, like a client and a server.

Since:
0.1

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
IOStreamCrossedConnector(IOStream iosClient, IOStream iosServer)
          CTor
 
Method Summary
protected  void doCleanup()
          unused
protected  void doCrashCleanup()
          unused
protected  void doIteration()
          Each step consist in the transmission of available data between client and server
protected  void doStartup()
          unused
 
Methods inherited from class org.shlublu.javax.lang.BasicThread
getCrashReason, run, stopJob
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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
 

Constructor Detail

IOStreamCrossedConnector

public IOStreamCrossedConnector(IOStream iosClient,
                                IOStream iosServer)
                         throws IOStreamException
CTor
Parameters:
IOStream - iosClient The client's couple of streams
IOStream - iosServer The server's couple of streams
Throws:
IOStreamException - when there's a problem with the IOStream's
Method Detail

doIteration

protected void doIteration()
                    throws java.lang.Exception
Each step consist in the transmission of available data between client and server
Overrides:
doIteration in class BasicThread
Throws:
java.lang.Exception - as defined by BasicThread
See Also:
BasicThread.doIteration()

doStartup

protected void doStartup()
                  throws java.lang.Exception
unused
Overrides:
doStartup in class BasicThread
Throws:
java.lang.Exception - as defined by BasicThread
See Also:
org.shlublu.javax.lang

doCleanup

protected void doCleanup()
                  throws java.lang.Exception
unused
Overrides:
doCleanup in class BasicThread
Throws:
java.lang.Exception - as defined by BasicThread
See Also:
org.shlublu.javax.lang

doCrashCleanup

protected void doCrashCleanup()
unused
Overrides:
doCrashCleanup in class BasicThread
See Also:
org.shlublu.javax.lang