public class NativeSocketChannel extends java.nio.channels.spi.AbstractSelectableChannel implements java.nio.channels.ByteChannel, NativeSelectableChannel
Modifier and Type | Field and Description |
---|---|
private Common |
common |
private static int |
SHUT_RD |
private static int |
SHUT_WR |
private int |
validOps |
Constructor and Description |
---|
NativeSocketChannel(int fd) |
NativeSocketChannel(int fd,
int ops) |
NativeSocketChannel(java.nio.channels.spi.SelectorProvider provider,
int fd,
int ops) |
Modifier and Type | Method and Description |
---|---|
int |
getFD() |
protected void |
implCloseSelectableChannel() |
protected void |
implConfigureBlocking(boolean block) |
int |
read(java.nio.ByteBuffer dst) |
void |
shutdownInput() |
void |
shutdownOutput() |
int |
validOps() |
int |
write(java.nio.ByteBuffer src) |
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register
begin, close, end, isOpen
private final Common common
private final int validOps
private static final int SHUT_RD
private static final int SHUT_WR
public NativeSocketChannel(int fd)
public NativeSocketChannel(int fd, int ops)
NativeSocketChannel(java.nio.channels.spi.SelectorProvider provider, int fd, int ops)
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 final int validOps()
validOps
in class java.nio.channels.SelectableChannel
public final int getFD()
getFD
in interface NativeSelectableChannel
public int read(java.nio.ByteBuffer dst) throws java.io.IOException
read
in interface java.nio.channels.ReadableByteChannel
java.io.IOException
public int write(java.nio.ByteBuffer src) throws java.io.IOException
write
in interface java.nio.channels.WritableByteChannel
java.io.IOException
public void shutdownInput() throws java.io.IOException
java.io.IOException
public void shutdownOutput() throws java.io.IOException
java.io.IOException