org.eclipse.ecf.provider.comm.tcp
Class Server

java.lang.Object
  extended by java.net.ServerSocket
      extended by org.eclipse.ecf.provider.comm.tcp.Server

public class Server
extends java.net.ServerSocket


Field Summary
static int DEFAULT_BACKLOG
           
 
Constructor Summary
Server(int port, ISocketAcceptHandler handler)
           
Server(java.lang.ThreadGroup group, int port, ISocketAcceptHandler handler)
           
 
Method Summary
 void close()
           
protected  void debug(java.lang.String msg)
           
protected  void handleAccept(java.net.Socket aSocket)
           
protected  java.lang.Thread setupListener()
           
protected  void traceStack(java.lang.String msg, java.lang.Throwable e)
           
 
Methods inherited from class java.net.ServerSocket
accept, bind, bind, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_BACKLOG

public static final int DEFAULT_BACKLOG
See Also:
Constant Field Values
Constructor Detail

Server

public Server(java.lang.ThreadGroup group,
              int port,
              ISocketAcceptHandler handler)
       throws java.io.IOException
Throws:
java.io.IOException

Server

public Server(int port,
              ISocketAcceptHandler handler)
       throws java.io.IOException
Throws:
java.io.IOException
Method Detail

debug

protected void debug(java.lang.String msg)

traceStack

protected void traceStack(java.lang.String msg,
                          java.lang.Throwable e)

setupListener

protected java.lang.Thread setupListener()

handleAccept

protected void handleAccept(java.net.Socket aSocket)

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.net.ServerSocket
Throws:
java.io.IOException