Top Description Methods
org.newsclub.net.unix

public Interface AFSomeSocketThing

extends Closeable, FileDescriptorAccess
Known Direct Subinterfaces
org.newsclub.net.unix.AFSomeSocket, org.newsclub.net.unix.AFSomeSocketChannel
Known Direct Implementers
org.newsclub.net.unix.AFServerSocket
Imports
java.io.Closeable, java.net.DatagramSocket, .ServerSocket, .Socket, .SocketAddress, java.nio.channels.DatagramChannel, .ServerSocketChannel, .SocketChannel, org.eclipse.jdt.annotation.Nullable

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

Method Summary

Modifier and TypeMethod and Description
public @Nullable SocketAddress

Returns:

The local socket address, or null.
getLocalSocketAddress
()

Returns the socket's local socket address, or null if unavailable or if there was a problem retrieving it.

public void
setShutdownOnClose(boolean
true if enabled.
enabled
)

Configures whether the socket should be shutdown upon close(), which is the default.

Inherited from java.io.Closeable:
close
Inherited from org.newsclub.net.unix.FileDescriptorAccess:
getFileDescriptor

Method Detail

getLocalSocketAddressback to summary
public @Nullable SocketAddress getLocalSocketAddress()

Returns the socket's local socket address, or null if unavailable or if there was a problem retrieving it.

Returns:@Nullable SocketAddress

The local socket address, or null.

setShutdownOnCloseback to summary
public void setShutdownOnClose(boolean enabled)

Configures whether the socket should be shutdown upon close(), which is the default.

Parameters
enabled:boolean

true if enabled.