de.ukn.hci.squidy.manager.protocol.tcp
Class TCPServer

java.lang.Object
  extended by java.lang.Thread
      extended by de.ukn.hci.squidy.manager.protocol.tcp.TCPServer
All Implemented Interfaces:
Runnable

public class TCPServer
extends Thread

TCPServer.

 Date: May 13, 2008
 Time: 5:14:32 PM
 

Since:
1.0
Version:
$Id: TCPServer.java 30 2009-09-18 22:23:35Z nitsche $ * @since 1.0.0 * @since 1.0.0
Author:
Roman Rädle, Roman.Raedle@uni-konstanz.de, University of Konstanz

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  List<TCPIncoming> incomings
           
protected  List<TCPListener> listeners
           
protected  List<TCPOutgoing> outgoings
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TCPServer(int port)
           
 
Method Summary
 void addTCPListener(TCPListener listener)
           
 void close()
           
 void removeTCPListener(TCPListener listener)
           
 void 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

incomings

protected List<TCPIncoming> incomings

outgoings

protected List<TCPOutgoing> outgoings

listeners

protected List<TCPListener> listeners
Constructor Detail

TCPServer

public TCPServer(int port)
Method Detail

addTCPListener

public void addTCPListener(TCPListener listener)

removeTCPListener

public void removeTCPListener(TCPListener listener)

close

public void close()

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2007-2010 Human-Computer-Interaction :: University of Konstanz. All Rights Reserved.