Class WrappedServerSocket


  • public class WrappedServerSocket
    extends java.lang.Object
    • Constructor Detail

      • WrappedServerSocket

        public WrappedServerSocket()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • WrappedServerSocket

        public WrappedServerSocket​(int port)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • WrappedServerSocket

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

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

      • getServerSocket

        public java.net.ServerSocket getServerSocket()
      • bind

        public void bind​(java.net.SocketAddress endpoint)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • bind

        public void bind​(java.net.SocketAddress endpoint,
                         int backlog)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getInetAddress

        public java.net.InetAddress getInetAddress()
      • getLocalPort

        public int getLocalPort()
      • getLocalSocketAddress

        public java.net.SocketAddress getLocalSocketAddress()
      • accept

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

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getChannel

        public java.nio.channels.ServerSocketChannel getChannel()
      • isBound

        public boolean isBound()
      • isClosed

        public boolean isClosed()
      • setSoTimeout

        public void setSoTimeout​(int timeout)
                          throws java.net.SocketException
        Throws:
        java.net.SocketException
      • getSoTimeout

        public int getSoTimeout()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • setReuseAddress

        public void setReuseAddress​(boolean on)
                             throws java.net.SocketException
        Throws:
        java.net.SocketException
      • getReuseAddress

        public boolean getReuseAddress()
                                throws java.net.SocketException
        Throws:
        java.net.SocketException
      • setSocketFactory

        public static void setSocketFactory​(java.net.SocketImplFactory fac)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • setReceiveBufferSize

        public void setReceiveBufferSize​(int size)
                                  throws java.net.SocketException
        Throws:
        java.net.SocketException
      • getReceiveBufferSize

        public int getReceiveBufferSize()
                                 throws java.net.SocketException
        Throws:
        java.net.SocketException
      • setPerformancePreferences

        public void setPerformancePreferences​(int connectionTime,
                                              int latency,
                                              int bandwidth)