程序包 | 说明 |
---|---|
io.netty.channel.epoll |
Optimized transport for linux which uses EPOLL Edge-Triggered Mode
for maximal performance.
|
io.netty.channel.unix |
Unix specific transport.
|
限定符和类型 | 类和说明 |
---|---|
class |
LinuxSocket
A socket which provides access Linux native methods.
|
限定符和类型 | 方法和说明 |
---|---|
static FileDescriptor |
Native.newEpollCreate() |
static FileDescriptor |
Native.newEventFd() |
static FileDescriptor |
Native.newTimerFd() |
限定符和类型 | 方法和说明 |
---|---|
static int |
Native.epollBusyWait(FileDescriptor epollFd,
EpollEventArray events)
Non-blocking variant of
Native.epollWait(FileDescriptor, EpollEventArray, FileDescriptor, int, int)
that will also hint to processor we are in a busy-wait loop. |
static int |
Native.epollWait(FileDescriptor epollFd,
EpollEventArray events,
FileDescriptor timerFd,
int timeoutSec,
int timeoutNs)
已过时。
this method is no longer supported. This functionality is internal to this package.
|
protected int |
AbstractEpollStreamChannel.SpliceInTask.spliceIn(FileDescriptor pipeOut,
RecvByteBufAllocator.Handle handle) |
ChannelFuture |
AbstractEpollStreamChannel.spliceTo(FileDescriptor ch,
int offset,
int len)
Splice from this
AbstractEpollStreamChannel to another FileDescriptor . |
ChannelFuture |
AbstractEpollStreamChannel.spliceTo(FileDescriptor ch,
int offset,
int len,
ChannelPromise promise)
Splice from this
AbstractEpollStreamChannel to another FileDescriptor . |
限定符和类型 | 类和说明 |
---|---|
class |
Socket
Provides a JNI bridge to native socket operations.
|
限定符和类型 | 字段和说明 |
---|---|
protected FileDescriptor |
SocketWritableByteChannel.fd |
限定符和类型 | 方法和说明 |
---|---|
FileDescriptor |
UnixChannel.fd()
Returns the
FileDescriptor that is used by this Channel . |
static FileDescriptor |
FileDescriptor.from(java.io.File file)
Open a new
FileDescriptor for the given File . |
static FileDescriptor |
FileDescriptor.from(java.lang.String path)
Open a new
FileDescriptor for the given path. |
static FileDescriptor[] |
FileDescriptor.pipe() |
构造器和说明 |
---|
SocketWritableByteChannel(FileDescriptor fd) |