public abstract class AbstractNativeSocketChannel
extends java.nio.channels.SocketChannel
implements java.nio.channels.ByteChannel, jnr.enxio.channels.NativeSelectableChannel
Constructor and Description |
---|
AbstractNativeSocketChannel(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) |
java.nio.channels.SocketChannel |
shutdownInput() |
java.nio.channels.SocketChannel |
shutdownOutput() |
int |
write(java.nio.ByteBuffer src) |
long |
write(java.nio.ByteBuffer[] srcs,
int offset,
int length) |
bind, connect, finishConnect, getLocalAddress, getRemoteAddress, isConnected, isConnectionPending, open, open, read, setOption, socket, validOps, write
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register
begin, close, end, isOpen
public void setFD(int fd)
public final int getFD()
getFD
in interface jnr.enxio.channels.NativeSelectableChannel
protected void implCloseSelectableChannel() throws java.io.IOException
implCloseSelectableChannel
in class java.nio.channels.spi.AbstractSelectableChannel
java.io.IOException
protected void implConfigureBlocking(boolean block) throws java.io.IOException
implConfigureBlocking
in class java.nio.channels.spi.AbstractSelectableChannel
java.io.IOException
public int read(java.nio.ByteBuffer dst) throws java.io.IOException
read
in interface java.nio.channels.ReadableByteChannel
read
in class java.nio.channels.SocketChannel
java.io.IOException
public long read(java.nio.ByteBuffer[] dsts, int offset, int length) throws java.io.IOException
read
in interface java.nio.channels.ScatteringByteChannel
read
in class java.nio.channels.SocketChannel
java.io.IOException
public int write(java.nio.ByteBuffer src) throws java.io.IOException
write
in interface java.nio.channels.WritableByteChannel
write
in class java.nio.channels.SocketChannel
java.io.IOException
public long write(java.nio.ByteBuffer[] srcs, int offset, int length) throws java.io.IOException
write
in interface java.nio.channels.GatheringByteChannel
write
in class java.nio.channels.SocketChannel
java.io.IOException
public java.nio.channels.SocketChannel shutdownInput() throws java.io.IOException
shutdownInput
in class java.nio.channels.SocketChannel
java.io.IOException
public java.nio.channels.SocketChannel shutdownOutput() throws java.io.IOException
shutdownOutput
in class java.nio.channels.SocketChannel
java.io.IOException
Copyright © 2023. All Rights Reserved.