public abstract class AbstractNativeDatagramChannel
extends java.nio.channels.DatagramChannel
implements java.nio.channels.ByteChannel, jnr.enxio.channels.NativeSelectableChannel
| Constructor and Description |
|---|
AbstractNativeDatagramChannel(int fd) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFD() |
protected void |
implCloseSelectableChannel() |
protected void |
implConfigureBlocking(boolean block) |
int |
read(java.nio.ByteBuffer dst) |
long |
read(java.nio.ByteBuffer[] dsts,
int offset,
int length) |
void |
setFD(int fd) |
int |
write(java.nio.ByteBuffer src) |
long |
write(java.nio.ByteBuffer[] srcs,
int offset,
int length) |
bind, connect, disconnect, getLocalAddress, getRemoteAddress, isConnected, open, open, read, receive, send, setOption, socket, validOps, writeblockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerbegin, close, end, isOpenpublic void setFD(int fd)
public final int getFD()
getFD in interface jnr.enxio.channels.NativeSelectableChannelprotected void implCloseSelectableChannel()
throws java.io.IOException
implCloseSelectableChannel in class java.nio.channels.spi.AbstractSelectableChanneljava.io.IOExceptionprotected void implConfigureBlocking(boolean block)
throws java.io.IOException
implConfigureBlocking in class java.nio.channels.spi.AbstractSelectableChanneljava.io.IOExceptionpublic int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface java.nio.channels.ReadableByteChannelread in class java.nio.channels.DatagramChanneljava.io.IOExceptionpublic long read(java.nio.ByteBuffer[] dsts,
int offset,
int length)
throws java.io.IOException
read in interface java.nio.channels.ScatteringByteChannelread in class java.nio.channels.DatagramChanneljava.io.IOExceptionpublic int write(java.nio.ByteBuffer src)
throws java.io.IOException
write in interface java.nio.channels.WritableByteChannelwrite in class java.nio.channels.DatagramChanneljava.io.IOExceptionpublic long write(java.nio.ByteBuffer[] srcs,
int offset,
int length)
throws java.io.IOException
write in interface java.nio.channels.GatheringByteChannelwrite in class java.nio.channels.DatagramChanneljava.io.IOExceptionCopyright © 2021. All Rights Reserved.