Top Description Constructors Methods
org.newsclub.net.unix

public final Class AFUNIXServerSocketChannel

extends AFServerSocketChannel<AFUNIXSocketAddress>
Class Inheritance
Imports
java.io.IOException

A selectable channel for stream-oriented listening sockets.
Author
Christian Kohlschütter

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public AFUNIXSocketChannel
accept()

Overrides org.newsclub.net.unix.AFServerSocketChannel.accept.

Accepts a connection made to this channel's socket.

public static AFUNIXServerSocketChannel

Returns:

The new channel
open
()

Hides java.nio.channels.ServerSocketChannel.open.

Opens a server-socket channel.

Inherited from org.newsclub.net.unix.AFServerSocketChannel:
bindgetAFCoregetFileDescriptorgetLocalAddressgetLocalSocketAddressgetOptionimplCloseSelectableChannelimplConfigureBlockingisDeleteOnCloseisLocalSocketAddressValidopensetDeleteOnClosesetOptionsetShutdownOnClosesocketsupportedOptions

Constructor Detail

AFUNIXServerSocketChannelback to summary
pack-priv AFUNIXServerSocketChannel(AFUNIXServerSocket socket)

Method Detail

acceptback to summary
public AFUNIXSocketChannel accept() throws IOException

Overrides org.newsclub.net.unix.AFServerSocketChannel.accept.

Doc from java.nio.channels.ServerSocketChannel.accept.

Accepts a connection made to this channel's socket.

If this channel is in non-blocking mode then this method will immediately return null if there are no pending connections. Otherwise it will block indefinitely until a new connection is available or an I/O error occurs.

The socket channel returned by this method, if any, will be in blocking mode regardless of the blocking mode of this channel.

Returns:AFUNIXSocketChannel

The socket channel for the new connection, or null if this channel is in non-blocking mode and no connection is available to be accepted

Annotations
@Override
Exceptions
IOException:
If some other I/O error occurs
openback to summary
public static AFUNIXServerSocketChannel open() throws IOException

Hides java.nio.channels.ServerSocketChannel.open.

Opens a server-socket channel.

Returns:AFUNIXServerSocketChannel

The new channel

Exceptions
IOException:
on error.