Top Description Constructors Methods
org.newsclub.net.unix

pack-priv final Class AFGenericServerSocketChannel

extends AFServerSocketChannel<AFGenericSocketAddress>
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 AFGenericSocketChannel
accept()

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

Accepts a connection made to this channel's socket.

public static AFGenericServerSocketChannel

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

AFGenericServerSocketChannelback to summary
pack-priv AFGenericServerSocketChannel(AFGenericServerSocket socket)

Method Detail

acceptback to summary
public AFGenericSocketChannel 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:AFGenericSocketChannel

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 AFGenericServerSocketChannel open() throws IOException

Hides java.nio.channels.ServerSocketChannel.open.

Opens a server-socket channel.

Returns:AFGenericServerSocketChannel

The new channel

Exceptions
IOException:
on error.