Interface AFSomeSocketThing

All Superinterfaces:
AutoCloseable, Closeable, FileDescriptorAccess
All Known Subinterfaces:
AFSomeSocket, AFSomeSocketChannel
All Known Implementing Classes:
AFDatagramChannel, AFDatagramSocket, AFServerSocket, AFServerSocketChannel, AFSocket, AFSocketChannel, AFUNIXDatagramChannel, AFUNIXDatagramSocket, AFUNIXServerSocket, AFUNIXServerSocketChannel, AFUNIXSocket, AFUNIXSocketChannel

public interface AFSomeSocketThing extends Closeable, FileDescriptorAccess
Marker interface that combines junixsocket-based SocketChannels, Sockets, DatagramChannels and DatagramSockets, as well as ServerSockets and ServerSocketChannels.
Author:
Christian Kohlschütter
See Also:
  • Method Details

    • getLocalSocketAddress

      @Nullable SocketAddress getLocalSocketAddress()
      Returns the socket's local socket address, or null if unavailable or if there was a problem retrieving it.
      Returns:
      The local socket address, or null.
    • setShutdownOnClose

      void setShutdownOnClose(boolean enabled)
      Configures whether the socket should be shutdown upon Closeable.close(), which is the default.
      Parameters:
      enabled - true if enabled.