Class TimeoutServerSocket

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class TimeoutServerSocket
    extends java.net.ServerSocket
    A ServerSocket that returns a TimeoutSocket from the overriden accept.
    Version:
    $Revision$
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.Socket accept()  
      • Methods inherited from class java.net.ServerSocket

        bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getOption, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, supportedOptions, 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
        Throws:
        java.io.IOException
      • TimeoutServerSocket

        public TimeoutServerSocket​(int port,
                                   int backlog)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • TimeoutServerSocket

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

      • accept

        public java.net.Socket accept()
                               throws java.io.IOException
        Overrides:
        accept in class java.net.ServerSocket
        Throws:
        java.io.IOException