- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,InterruptibleChannel,NetworkChannel,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 org.newsclub.net.unix.AFServerSocketChannel
bind, getFileDescriptor, getLocalAddress, getOption, implCloseSelectableChannel, implConfigureBlocking, isDeleteOnClose, isLocalSocketAddressValid, setDeleteOnClose, setOption, socket, supportedOptionsMethods inherited from class java.nio.channels.ServerSocketChannel
bind, open, validOpsMethods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerMethods inherited from class java.nio.channels.SelectableChannel
registerMethods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
-
Method Details
-
open
Opens a server-socket channel.- Returns:
- The new channel
- Throws:
IOException- on error.
-
accept
- Overrides:
acceptin classAFServerSocketChannel<AFUNIXSocketAddress>- Throws:
IOException
-