AFSocketAddress that is supported by this type.
| Modifier and Type | Field and Description |
|---|---|
| private final @NonNull AFServerSocket |
| Access | Constructor and Description |
|---|---|
| protected | AFServerSocketChannel(AFServerSocket<A>
The corresponding socket, AFSelectorProvider<A> ServerSocket.The corresponding sp)SelectorProvider.Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public AFSocketChannel | accept()
Implements abstract java. Accepts a connection made to this channel's socket. |
| public final AFServerSocketChannel | bind(SocketAddress
The address to bind the socket, or local, int null to bind to
an automatically assigned socket addressThe maximum number of pending connections backlog)Implements abstract java. Binds the channel's socket to a local address and configures the socket to listen for connections. |
| pack-priv final AFSocketCore | |
| public final FileDescriptor | getFileDescriptor()
Implements org. Returns the corresponding |
| public final @Nullable A | getLocalAddress()
Implements abstract java. Implements java. Returns the socket address that this channel's socket is bound to. |
| public final @Nullable A | getLocalSocketAddress()
Implements org. Returns the socket's local socket address, or |
| public <T> T | getOption(SocketOption<T>
The socket option name)Implements java. Returns the value of a socket option. |
| protected final void | implCloseSelectableChannel()
Implements abstract java. Closes this selectable channel. |
| protected final void | implConfigureBlocking(boolean
If block)true then this channel will be placed in
blocking mode; if false then it will be placed
non-blocking modeImplements abstract java. Adjusts this channel's blocking mode. |
| public final boolean | |
| public final boolean | Returns: true iff still valid.Checks if the local socket address returned by |
| public static ServerSocketChannel | Returns: The newServerSocketChannel.The protocol family. family)Hides java. Opens a server-socket channel. |
| public final void | setDeleteOnClose(boolean
Enabled if b)true.Enables/disables deleting this |
| public <T> AFServerSocketChannel | setOption(SocketOption<T>
The socket option name, T The value of the socket option. A value of value)null may be
a valid value for some socket options.Implements abstract java. Implements java. Sets the value of a socket option. |
| public void | setShutdownOnClose(boolean
true if enabled.Implements org. Configures whether the socket should be shutdown upon |
| public final AFServerSocket | socket()
Implements abstract java. Retrieves a server socket associated with this channel. |
| public final Set | supportedOptions()
Implements java. Returns a set of the socket options supported by this channel. |
| afSocket | back to summary |
|---|---|
| private final @NonNull AFServerSocket<A> afSocket | |
| AFServerSocketChannel | back to summary |
|---|---|
| protected AFServerSocketChannel(AFServerSocket<A> socket, AFSelectorProvider<A> sp) Creates a new
| |
| accept | back to summary |
|---|---|
| public AFSocketChannel Implements abstract java. Doc from java. Accepts a connection made to this channel's socket. If this channel is in non-blocking mode then this method will
immediately return The socket channel returned by this method, if any, will be in blocking mode regardless of the blocking mode of this channel.
| |
| bind | back to summary |
|---|---|
| public final AFServerSocketChannel Implements abstract java. Doc from java. Binds the channel's socket to a local address and configures the socket to listen for connections. This method is used to establish an association between the socket and a local address. For Internet protocol sockets, once an association is established then the socket remains bound until the channel is closed. The
| |
| getAFCore | back to summary |
|---|---|
| pack-priv final AFSocketCore getAFCore() | |
| getFileDescriptor | back to summary |
|---|---|
| public final FileDescriptor getFileDescriptor() throws IOException Implements org. Doc from org. Returns the corresponding
| |
| getLocalAddress | back to summary |
|---|---|
| public final @Nullable A getLocalAddress() Implements abstract java. Implements java. Doc from java. Returns the socket address that this channel's socket is bound to. Where the channel is Where the channel is bound to a Unix Domain socket address, the socket
address is a | |
| getLocalSocketAddress | back to summary |
|---|---|
| public final @Nullable A getLocalSocketAddress() Implements org. Doc from org. Returns the socket's local socket address, or | |
| getOption | back to summary |
|---|---|
| public <T> T getOption(SocketOption<T> name) throws IOException Implements java. Doc from java. Returns the value of a socket option.
| |
| implCloseSelectableChannel | back to summary |
|---|---|
| protected final void implCloseSelectableChannel() throws IOException Implements abstract java. Doc from java. Closes this selectable channel. This method is invoked by the An implementation of this method must arrange for any other thread that is blocked in an I/O operation upon this channel to return immediately, either by throwing an exception or by returning normally.
| |
| implConfigureBlocking | back to summary |
|---|---|
| protected final void implConfigureBlocking(boolean block) throws IOException Implements abstract java. Doc from java. Adjusts this channel's blocking mode. This method is invoked by the
| |
| isDeleteOnClose | back to summary |
|---|---|
| public final boolean isDeleteOnClose() Checks if this
| |
| isLocalSocketAddressValid | back to summary |
|---|---|
| public final boolean isLocalSocketAddressValid() Checks if the local socket address returned by
| |
| open | back to summary |
|---|---|
| public static ServerSocketChannel open(ProtocolFamily family) throws IOException Hides java. Opens a server-socket channel. The
If the
| |
| setDeleteOnClose | back to summary |
|---|---|
| public final void setDeleteOnClose(boolean b) Enables/disables deleting this
| |
| setOption | back to summary |
|---|---|
| public <T> AFServerSocketChannel Implements abstract java. Implements java. Doc from java. Sets the value of a socket option.
| |
| setShutdownOnClose | back to summary |
|---|---|
| public void setShutdownOnClose(boolean enabled) Implements org. Doc from org. Configures whether the socket should be shutdown upon
| |
| socket | back to summary |
|---|---|
| public final AFServerSocket Implements abstract java. Doc from java. Retrieves a server socket associated with this channel. The returned object will not declare any public methods that are not
declared in the
| |
| supportedOptions | back to summary |
|---|---|
| public final Set Implements java. Doc from java. Returns a set of the socket options supported by this channel. This method will continue to return the set of options even after the channel has been closed.
| |