Class AFUNIXServerSocketChannel
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, InterruptibleChannel, NetworkChannel, AFSomeSocketChannel, AFSomeSocketThing, FileDescriptorAccess
A selectable channel for stream-oriented listening sockets.
- Author:
- Christian Kohlschütter
-
Method Summary
Modifier and TypeMethodDescriptionaccept()static AFUNIXServerSocketChannelopen()Opens a server-socket channel.Methods inherited from class AFServerSocketChannel
bind, getFileDescriptor, getLocalAddress, getLocalSocketAddress, getOption, implCloseSelectableChannel, implConfigureBlocking, isDeleteOnClose, isLocalSocketAddressValid, open, setDeleteOnClose, setOption, setShutdownOnClose, socket, supportedOptionsModifier and TypeMethodDescriptionbind(SocketAddress local, int backlog) final FileDescriptorReturns the correspondingFileDescriptor.final AFUNIXSocketAddressfinal AFUNIXSocketAddressReturns the socket's local socket address, ornullif unavailable or if there was a problem retrieving it.<T> TgetOption(SocketOption<T> name) protected final voidprotected final voidimplConfigureBlocking(boolean block) final booleanChecks if thisAFServerSocketChannel's file should be removed uponAbstractInterruptibleChannel.close().final booleanChecks if the local socket address returned byAFServerSocketChannel.getLocalAddress()is still valid.static ServerSocketChannelopen(ProtocolFamily family) Opens a server-socket channel.final voidsetDeleteOnClose(boolean b) Enables/disables deleting thisAFServerSocketChannel's file (or other resource type) uponAbstractInterruptibleChannel.close().setOption(SocketOption<T> name, T value) voidsetShutdownOnClose(boolean enabled) Configures whether the socket should be shutdown uponCloseable.close(), which is the default.socket()final Set<SocketOption<?>> Methods inherited from class ServerSocketChannel
bind, validOpsMethods inherited from class AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerMethods inherited from class SelectableChannel
registerMethods inherited from class AbstractInterruptibleChannel
begin, close, end, isOpenMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AFSomeSocketChannel
configureBlocking, isBlockingModifier and TypeMethodDescriptionconfigureBlocking(boolean block) Adjusts this channel's blocking mode.booleanChecks if the channel is configured blocking.
-
Method Details
-
open
Opens a server-socket channel.- Returns:
- The new channel
- Throws:
IOException- on error.
-
accept
- Overrides:
acceptin classAFServerSocketChannel<AFUNIXSocketAddress>- Throws:
IOException
-