Interface AFSomeSocket

All Superinterfaces:
AutoCloseable, Closeable, FileDescriptorAccess
All Known Implementing Classes:
AFDatagramChannel, AFDatagramSocket, AFSocket, AFSocketChannel, AFUNIXDatagramChannel, AFUNIXDatagramSocket, AFUNIXSocket, AFUNIXSocketChannel

public interface AFSomeSocket extends Closeable, FileDescriptorAccess
Marker interface that combines junixsocket-based SocketChannels, Sockets, DatagramChannels and DatagramSockets.
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.
    • getRemoteSocketAddress

      @Nullable SocketAddress getRemoteSocketAddress()
      Returns the socket's remote socket address, or null if unavailable/not connected, or if there was a problem retrieving it.
      Returns:
      The remote socket address, or null.