Module java.base
Package java.net

# Class ServerSocket

=
public class ServerSocket
extends java.lang.Object
implements java.io.Closeable

## Constructors

- =
  public ServerSocket() throws java.io.IOException
- =
  public ServerSocket(int arg0) throws java.io.IOException
- =
  public ServerSocket(int arg0, int arg1) throws java.io.IOException
- =
  public ServerSocket(int arg0, int arg1, java.net.InetAddress arg2) throws java.io.IOException
- =
  protected ServerSocket(java.net.SocketImpl arg0)

## Methods

- =
  public java.net.Socket accept() throws java.io.IOException
- =
  public void bind(java.net.SocketAddress arg0) throws java.io.IOException
- =
  public void bind(java.net.SocketAddress arg0, int arg1) throws java.io.IOException
- =
  public void close() throws java.io.IOException
- =
  public java.nio.channels.ServerSocketChannel getChannel()
- =
  public java.net.InetAddress getInetAddress()
- =
  public int getLocalPort()
- =
  public java.net.SocketAddress getLocalSocketAddress()
- =
  public <T> T getOption(java.net.SocketOption<T> arg0) throws java.io.IOException
- =
  public int getReceiveBufferSize() throws java.net.SocketException
- =
  public boolean getReuseAddress() throws java.net.SocketException
- =
  public int getSoTimeout() throws java.io.IOException
- =
  protected final void implAccept(java.net.Socket arg0) throws java.io.IOException
- =
  public boolean isBound()
- =
  public boolean isClosed()
- =
  public <T> java.net.ServerSocket setOption(java.net.SocketOption<T> arg0, T arg1) throws java.io.IOException
- =
  public void setPerformancePreferences(int arg0, int arg1, int arg2)
- =
  public void setReceiveBufferSize(int arg0) throws java.net.SocketException
- =
  public void setReuseAddress(boolean arg0) throws java.net.SocketException
- =
  public void setSoTimeout(int arg0) throws java.net.SocketException
- =
  @Deprecated(since="17")
  public static void setSocketFactory(java.net.SocketImplFactory arg0) throws java.io.IOException
- =
  public java.util.Set<java.net.SocketOption<?>> supportedOptions()
- =
  public java.lang.String toString()

## Summary

No differences.