org.jboss.net.sockets
Class TimeoutServerSocket

java.lang.Object
  extended byjava.net.ServerSocket
      extended byorg.jboss.net.sockets.TimeoutServerSocket

public class TimeoutServerSocket
extends java.net.ServerSocket

A ServerSocket that returns a TimeoutSocket from the overriden accept.


Constructor Summary
TimeoutServerSocket(int port)
           
TimeoutServerSocket(int port, int backlog)
           
TimeoutServerSocket(int port, int backlog, java.net.InetAddress bindAddr)
           
 
Method Summary
 java.net.Socket accept()
           
 
Methods inherited from class java.net.ServerSocket
bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeoutServerSocket

public TimeoutServerSocket(int port)
                    throws java.io.IOException

TimeoutServerSocket

public TimeoutServerSocket(int port,
                           int backlog)
                    throws java.io.IOException

TimeoutServerSocket

public TimeoutServerSocket(int port,
                           int backlog,
                           java.net.InetAddress bindAddr)
                    throws java.io.IOException
Method Detail

accept

public java.net.Socket accept()
                       throws java.io.IOException
Throws:
java.io.IOException