Interface AFSomeSocketChannel

All Superinterfaces:
AFSomeSocketThing, AutoCloseable, Closeable, FileDescriptorAccess
All Known Implementing Classes:
AFDatagramChannel, AFServerSocketChannel, AFSocketChannel, AFUNIXDatagramChannel, AFUNIXServerSocketChannel, AFUNIXSocketChannel

public interface AFSomeSocketChannel extends Closeable, FileDescriptorAccess, AFSomeSocketThing
Marker interface that combines junixsocket-based SocketChannels, DatagramChannels or ServerSocketChannels.
Author:
Christian Kohlschütter
See Also:
  • Method Details

    • isBlocking

      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:
      true if blocking.
    • configureBlocking

      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 - true if blocking is desired.
      Returns:
      This channel.
      Throws:
      IOException - on error.