java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
java.nio.channels.DatagramChannel
org.newsclub.net.unix.AFDatagramChannel<AFVSOCKSocketAddress>
org.newsclub.net.unix.vsock.AFVSOCKDatagramChannel
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ByteChannel
,Channel
,GatheringByteChannel
,InterruptibleChannel
,MulticastChannel
,NetworkChannel
,ReadableByteChannel
,ScatteringByteChannel
,WritableByteChannel
,AFSocketExtensions
,AFSomeSocket
,AFSomeSocketChannel
,AFSomeSocketThing
,FileDescriptorAccess
,AFVSOCKSocketExtensions
public final class AFVSOCKDatagramChannel
extends AFDatagramChannel<AFVSOCKSocketAddress>
implements AFVSOCKSocketExtensions
A
DatagramChannel
implementation that works with AF_VSOCK
sockets.- Author:
- Christian Kohlschütter
-
Method Summary
Modifier and TypeMethodDescriptionstatic AFVSOCKDatagramChannel
open()
Opens a datagram channel.static AFVSOCKDatagramChannel
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
-