- All Superinterfaces:
AFSomeSocketThing,AutoCloseable,Closeable,FileDescriptorAccess
- All Known Implementing Classes:
AFDatagramChannel,AFDatagramSocket,AFSocket,AFSocketChannel,AFSYSTEMDatagramChannel,AFSYSTEMDatagramSocket,AFSYSTEMSocket,AFSYSTEMSocketChannel,AFTIPCDatagramChannel,AFTIPCDatagramSocket,AFTIPCSocket,AFTIPCSocketChannel,AFUNIXDatagramChannel,AFUNIXDatagramSocket,AFUNIXSocket,AFUNIXSocketChannel,AFVSOCKDatagramChannel,AFVSOCKDatagramSocket,AFVSOCKSocket,AFVSOCKSocketChannel
Marker interface that combines junixsocket-based
SocketChannels, Sockets,
DatagramChannels and DatagramSockets.- Author:
- Christian Kohlschütter
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable SocketAddressReturns the socket's remote socket address, ornullif unavailable/not connected, or if there was a problem retrieving it.Methods inherited from interface org.newsclub.net.unix.AFSomeSocketThing
getLocalSocketAddress, setShutdownOnCloseMethods inherited from interface org.newsclub.net.unix.FileDescriptorAccess
getFileDescriptor
-
Method Details
-
getRemoteSocketAddress
@Nullable SocketAddress getRemoteSocketAddress()Returns the socket's remote socket address, ornullif unavailable/not connected, or if there was a problem retrieving it.- Returns:
- The remote socket address, or
null.
-