p2ps.imp.endpoint.TCP
Class TCPOutputHandler

java.lang.Object
  extended byjava.lang.Thread
      extended byp2ps.imp.endpoint.TCP.TCPOutputHandler
All Implemented Interfaces:
java.lang.Runnable

public class TCPOutputHandler
extends java.lang.Thread

The class responsible for sending data to a TCP socket

Version:
$Revision: 295 $
Author:
Ian Wang

Field Summary
static int MONITOR_SLEEP_TIME
           
static TCPOutputHandler OUTPUT_HANDLER
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected TCPOutputHandler()
           
 
Method Summary
 void addEndpoint(TCPEndpoint endpoint)
          Adds a socket to the socket list
 void close()
          Closes the socket handler and all associated sockets
 void removeEndpoint(TCPEndpoint endpoint)
          Removes a socket from the socket list
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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
 

Field Detail

MONITOR_SLEEP_TIME

public static int MONITOR_SLEEP_TIME

OUTPUT_HANDLER

public static TCPOutputHandler OUTPUT_HANDLER
Constructor Detail

TCPOutputHandler

protected TCPOutputHandler()
Method Detail

addEndpoint

public void addEndpoint(TCPEndpoint endpoint)
Adds a socket to the socket list


removeEndpoint

public void removeEndpoint(TCPEndpoint endpoint)
Removes a socket from the socket list


close

public void close()
Closes the socket handler and all associated sockets


run

public void run()