- All Implemented Interfaces:
Closeable
,AutoCloseable
,ByteChannel
,Channel
,GatheringByteChannel
,InterruptibleChannel
,MulticastChannel
,NetworkChannel
,ReadableByteChannel
,ScatteringByteChannel
,WritableByteChannel
,AFSocketExtensions
,AFSomeSocket
,AFSomeSocketChannel
,AFSomeSocketThing
,FileDescriptorAccess
,AFTIPCSocketExtensions
public final class AFTIPCDatagramChannel
extends AFDatagramChannel<AFTIPCSocketAddress>
implements AFTIPCSocketExtensions
A
DatagramChannel
implementation that works with AF_TIPC
sockets.- Author:
- Christian Kohlschütter
-
Method Summary
Modifier and TypeMethodDescriptionReturns the TIPC "DestName" information from the ancillary receive buffer (if any was set), ornull
if no DestName was retrieved.Returns the TIPC "ErrInfo" information from the ancillary receive buffer (if any was set), ornull
if no error was retrieved.static AFTIPCDatagramChannel
open()
Opens a datagram channel.static AFTIPCDatagramChannel
open
(ProtocolFamily family) Opens a datagram channel.Methods inherited from class org.newsclub.net.unix.AFDatagramChannel
bind, connect, disconnect, ensureAncillaryReceiveBufferSize, getAFSocket, getAncillaryReceiveBufferSize, getFileDescriptor, getLocalAddress, getLocalSocketAddress, getOption, getRemoteAddress, getRemoteSocketAddress, implCloseSelectableChannel, implConfigureBlocking, isBound, isConnected, isDeleteOnClose, join, join, read, read, receive, send, setAncillaryReceiveBufferSize, setDeleteOnClose, setOption, setShutdownOnClose, socket, supportedOptions, write, write
Methods inherited from class java.nio.channels.DatagramChannel
read, validOps, write
Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register
Methods inherited from class java.nio.channels.SelectableChannel
register
Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.newsclub.net.unix.AFSocketExtensions
ensureAncillaryReceiveBufferSize, getAncillaryReceiveBufferSize, setAncillaryReceiveBufferSize
Methods inherited from interface org.newsclub.net.unix.AFSomeSocketChannel
configureBlocking, isBlocking
Methods inherited from interface java.nio.channels.InterruptibleChannel
close
Methods inherited from interface java.nio.channels.MulticastChannel
close
-
Method Details
-
open
Opens a datagram channel.- Returns:
- The new channel
- Throws:
IOException
- if an I/O error occurs
-
open
Opens a datagram channel.- Parameters:
family
- The protocol family- Returns:
- A new datagram channel
- Throws:
UnsupportedOperationException
- if the specified protocol family is not supportedIOException
- if an I/O error occurs
-
getErrInfo
Description copied from interface:AFTIPCSocketExtensions
Returns the TIPC "ErrInfo" information from the ancillary receive buffer (if any was set), ornull
if no error was retrieved.- Specified by:
getErrInfo
in interfaceAFTIPCSocketExtensions
- Returns:
- The ErrInfo.
-
getDestName
Description copied from interface:AFTIPCSocketExtensions
Returns the TIPC "DestName" information from the ancillary receive buffer (if any was set), ornull
if no DestName was retrieved.- Specified by:
getDestName
in interfaceAFTIPCSocketExtensions
- Returns:
- The service address or range (without scope) that was specified by the sender of the message.
-