p2ps.imp.endpoint.TCP
Class TCPInputHandler

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

public class TCPInputHandler
extends java.lang.Thread

The class responsible for receiving data from a TCP socket

Version:
$Revision: 295 $
Author:
Ian Wang

Field Summary
static TCPInputHandler INPUT_HANDLER
           
static int MONITOR_SLEEP_TIME
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected TCPInputHandler()
           
 
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

INPUT_HANDLER

public static TCPInputHandler INPUT_HANDLER
Constructor Detail

TCPInputHandler

protected TCPInputHandler()
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()