Top Description Methods
org.newsclub.net.unix

public Interface AFSomeSocketChannel

extends InterruptibleChannel, FileDescriptorAccess, AFSomeSocketThing
Known Direct Implementers
org.newsclub.net.unix.AFDatagramChannel, org.newsclub.net.unix.AFServerSocketChannel, org.newsclub.net.unix.AFSocketChannel
Imports
java.io.IOException, java.nio.channels.DatagramChannel, .InterruptibleChannel, .SelectableChannel, .ServerSocketChannel, .SocketChannel

Marker interface that combines junixsocket-based SocketChannels, DatagramChannels or ServerSocketChannels.
Author
Christian Kohlschütter
See Also
AFSocketChannel, AFServerSocketChannel, AFDatagramChannel

Method Summary

Modifier and TypeMethod and Description
public SelectableChannel

Returns:

This channel.
configureBlocking
(boolean
true if blocking is desired.
block
)

Adjusts this channel's blocking mode.

public boolean

Returns:

true if blocking.
isBlocking
()

Checks if the channel is configured blocking.

Inherited from java.nio.channels.InterruptibleChannel:
close
Inherited from org.newsclub.net.unix.AFSomeSocketThing:
getLocalSocketAddresssetShutdownOnClose
Inherited from org.newsclub.net.unix.FileDescriptorAccess:
getFileDescriptor

Method Detail

configureBlockingback to summary
public SelectableChannel configureBlocking(boolean block) throws IOException

Adjusts this channel's blocking mode.

If the given blocking mode is different from the currently cached blocking mode then this method native code to change it.

Parameters
block:boolean

true if blocking is desired.

Returns:SelectableChannel

This channel.

Exceptions
IOException:
on error.
isBlockingback to summary
public boolean isBlocking()

Checks if the channel is configured blocking. The result may be cached, and therefore not invoke native code to check if the underlying socket is actually configured that way.

Returns:boolean

true if blocking.