Top Description Methods
org.newsclub.net.unix

public Interface AFSomeSocket

extends AFSomeSocketThing
Known Direct Implementers
org.newsclub.net.unix.AFDatagramChannel, org.newsclub.net.unix.AFDatagramSocket, org.newsclub.net.unix.AFSocket, org.newsclub.net.unix.AFSocketChannel
Imports
java.net.DatagramSocket, .Socket, .SocketAddress, java.nio.channels.DatagramChannel, .SocketChannel, org.eclipse.jdt.annotation.Nullable

Marker interface that combines junixsocket-based SocketChannels, Sockets, DatagramChannels and DatagramSockets.
Author
Christian Kohlschütter
See Also
AFSocketPair, AFSocket, AFSocketChannel, AFDatagramSocket, AFDatagramChannel

Method Summary

Modifier and TypeMethod and Description
public @Nullable SocketAddress

Returns:

The remote socket address, or null.
getRemoteSocketAddress
()

Returns the socket's remote socket address, or null if unavailable/not connected, or if there was a problem retrieving it.

Inherited from org.newsclub.net.unix.AFSomeSocketThing:
getLocalSocketAddresssetShutdownOnClose

Method Detail

getRemoteSocketAddressback to summary
public @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:@Nullable SocketAddress

The remote socket address, or null.