Class ServerSocketRack

java.lang.Object
org.marid.racks.net.ServerSocketRack
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public class ServerSocketRack
extends java.lang.Object
implements java.io.Closeable
  • Constructor Summary

    Constructors 
    Constructor Description
    ServerSocketRack​(int port, int backlog, java.net.InetAddress bindAddress)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    int getPort()  
    java.net.ServerSocket getServerSocket()  
    org.marid.io.function.IOSupplier<java.net.Socket> getSocketSupplier()  
    void setInputBufferSize​(int size)  
    void setOutputBufferSize​(int size)  
    void setSoBroadcast​(boolean broadcast)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ServerSocketRack

      public ServerSocketRack​(int port, int backlog, java.net.InetAddress bindAddress) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • setInputBufferSize

      public void setInputBufferSize​(int size) throws java.io.IOException
      Throws:
      java.io.IOException
    • setOutputBufferSize

      public void setOutputBufferSize​(int size) throws java.io.IOException
      Throws:
      java.io.IOException
    • setSoBroadcast

      public void setSoBroadcast​(boolean broadcast) throws java.io.IOException
      Throws:
      java.io.IOException
    • getPort

      public int getPort()
    • getServerSocket

      public java.net.ServerSocket getServerSocket()
    • getSocketSupplier

      public org.marid.io.function.IOSupplier<java.net.Socket> getSocketSupplier()
    • close

      public void close() throws java.io.IOException
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Throws:
      java.io.IOException