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<org.newsclub.net.unix.AFVSOCKSocketAddress>
org.newsclub.net.unix.vsock.AFVSOCKDatagramChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,ByteChannel,Channel,GatheringByteChannel,InterruptibleChannel,MulticastChannel,NetworkChannel,ReadableByteChannel,ScatteringByteChannel,WritableByteChannel,org.newsclub.net.unix.AFSocketExtensions,org.newsclub.net.unix.AFSomeSocket,org.newsclub.net.unix.FileDescriptorAccess,AFVSOCKSocketExtensions
public final class AFVSOCKDatagramChannel
extends org.newsclub.net.unix.AFDatagramChannel<org.newsclub.net.unix.AFVSOCKSocketAddress>
implements AFVSOCKSocketExtensions
A
DatagramChannel implementation that works with AF_VSOCK sockets.- Author:
- Christian Kohlschütter
-
Method Summary
Modifier and TypeMethodDescriptionstatic AFVSOCKDatagramChannelopen()Opens a datagram channel.static AFVSOCKDatagramChannelopen(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, socket, supportedOptions, write, writeMethods inherited from class java.nio.channels.DatagramChannel
read, validOps, writeMethods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerMethods inherited from class java.nio.channels.SelectableChannel
registerMethods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.newsclub.net.unix.AFSocketExtensions
ensureAncillaryReceiveBufferSize, getAncillaryReceiveBufferSize, setAncillaryReceiveBufferSizeMethods 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
-