Class AFTIPCSocketChannel
java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
java.nio.channels.SocketChannel
org.newsclub.net.unix.AFSocketChannel<org.newsclub.net.unix.AFTIPCSocketAddress>
org.newsclub.net.unix.tipc.AFTIPCSocketChannel
- All Implemented Interfaces:
Closeable, AutoCloseable, ByteChannel, Channel, GatheringByteChannel, InterruptibleChannel, NetworkChannel, ReadableByteChannel, ScatteringByteChannel, WritableByteChannel, org.newsclub.net.unix.AFSocketExtensions, org.newsclub.net.unix.AFSomeSocket, org.newsclub.net.unix.AFSomeSocketChannel, org.newsclub.net.unix.AFSomeSocketThing, org.newsclub.net.unix.FileDescriptorAccess, AFTIPCSocketExtensions
public final class AFTIPCSocketChannel
extends org.newsclub.net.unix.AFSocketChannel<org.newsclub.net.unix.AFTIPCSocketAddress>
implements AFTIPCSocketExtensions
A selectable channel for stream-oriented connecting sockets.
- Author:
- Christian Kohlschütter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.newsclub.net.unix.AFSocketChannel
org.newsclub.net.unix.AFSocketChannel.AFSocketSupplier<A> -
Method Summary
Modifier and TypeMethodDescriptionReturns the TIPC "DestName" information from the ancillary receive buffer (if any was set), ornullif no DestName was retrieved.Returns the TIPC "ErrInfo" information from the ancillary receive buffer (if any was set), ornullif no error was retrieved.static AFTIPCSocketChannelopen()Opens a datagram channel.Methods inherited from class org.newsclub.net.unix.AFSocketChannel
bind, connect, ensureAncillaryReceiveBufferSize, finishConnect, getAFSocket, getAncillaryReceiveBufferSize, getFileDescriptor, getLocalAddress, getLocalSocketAddress, getOption, getRemoteAddress, getRemoteSocketAddress, implCloseSelectableChannel, implConfigureBlocking, isConnected, isConnectionPending, open, open, open, read, read, setAncillaryReceiveBufferSize, setOption, setShutdownOnClose, shutdownInput, shutdownOutput, socket, supportedOptions, toString, write, writeMethods inherited from class SocketChannel
open, read, validOps, writeMethods inherited from class AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerMethods inherited from class SelectableChannel
registerMethods inherited from class AbstractInterruptibleChannel
begin, close, end, isOpenMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.newsclub.net.unix.AFSomeSocketChannel
configureBlocking, isBlocking
-
Method Details
-
getErrInfo
Description copied from interface:AFTIPCSocketExtensionsReturns the TIPC "ErrInfo" information from the ancillary receive buffer (if any was set), ornullif no error was retrieved.- Specified by:
getErrInfoin interfaceAFTIPCSocketExtensions- Returns:
- The ErrInfo.
-
getDestName
Description copied from interface:AFTIPCSocketExtensionsReturns the TIPC "DestName" information from the ancillary receive buffer (if any was set), ornullif no DestName was retrieved.- Specified by:
getDestNamein interfaceAFTIPCSocketExtensions- Returns:
- The service address or range (without scope) that was specified by the sender of the message.
-
open
Opens a datagram channel.- Returns:
- The new channel
- Throws:
IOException- if an I/O error occurs
-