public final class Native extends Object
Modifier and Type | Field and Description |
---|---|
static int |
EPOLLET |
static int |
EPOLLIN |
static int |
EPOLLOUT |
static int |
EPOLLRDHUP |
static int |
IOV_MAX |
static boolean |
IS_SUPPORTING_SENDMMSG |
static int |
UIO_MAX_IOV |
Modifier and Type | Method and Description |
---|---|
static int |
accept(int fd,
byte[] addr) |
static void |
bind(int fd,
SocketAddress socketAddress) |
static void |
close(int fd) |
static boolean |
connect(int fd,
SocketAddress socketAddress) |
static int |
epollCreate() |
static void |
epollCtlAdd(int efd,
int fd,
int flags) |
static void |
epollCtlDel(int efd,
int fd) |
static void |
epollCtlMod(int efd,
int fd,
int flags) |
static int |
epollWait(int efd,
io.netty.channel.epoll.EpollEventArray events,
int timeout) |
static int |
eventFd() |
static void |
eventFdRead(int fd) |
static void |
eventFdWrite(int fd,
long value) |
static boolean |
finishConnect(int fd) |
static int |
getReceiveBufferSize(int fd) |
static int |
getSendBufferSize(int fd) |
static int |
getSoError(int fd) |
static int |
getSoLinger(int fd) |
static int |
getTcpKeepCnt(int fd) |
static int |
getTcpKeepIdle(int fd) |
static int |
getTcpKeepIntvl(int fd) |
static int |
getTrafficClass(int fd) |
static int |
isBroadcast(int fd) |
static int |
isKeepAlive(int fd) |
static int |
isReuseAddress(int fd) |
static int |
isReusePort(int fd) |
static int |
isTcpCork(int fd) |
static int |
isTcpNoDelay(int fd) |
static String |
kernelVersion() |
static void |
listen(int fd,
int backlog) |
static InetSocketAddress |
localAddress(int fd) |
static IOException |
newIOException(String method,
int err) |
static int |
offsetofEpollData() |
static long |
pipe() |
static int |
read(int fd,
ByteBuffer buf,
int pos,
int limit) |
static int |
readAddress(int fd,
long address,
int pos,
int limit) |
static int |
recvFd(int fd) |
static io.netty.channel.epoll.EpollDatagramChannel.DatagramSocketAddress |
recvFrom(int fd,
ByteBuffer buf,
int pos,
int limit) |
static io.netty.channel.epoll.EpollDatagramChannel.DatagramSocketAddress |
recvFromAddress(int fd,
long memoryAddress,
int pos,
int limit) |
static InetSocketAddress |
remoteAddress(int fd) |
static int |
sendFd(int socketFd,
int fd) |
static long |
sendfile(int dest,
DefaultFileRegion src,
long baseOffset,
long offset,
long length) |
static int |
sendmmsg(int fd,
io.netty.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket[] msgs,
int offset,
int len) |
static int |
sendTo(int fd,
ByteBuffer buf,
int pos,
int limit,
InetAddress addr,
int port) |
static int |
sendToAddress(int fd,
long memoryAddress,
int pos,
int limit,
InetAddress addr,
int port) |
static int |
sendToAddresses(int fd,
long memoryAddress,
int length,
InetAddress addr,
int port) |
static void |
setBroadcast(int fd,
int broadcast) |
static void |
setKeepAlive(int fd,
int keepAlive) |
static void |
setReceiveBufferSize(int fd,
int receiveBufferSize) |
static void |
setReuseAddress(int fd,
int reuseAddress) |
static void |
setReusePort(int fd,
int reuseAddress) |
static void |
setSendBufferSize(int fd,
int sendBufferSize) |
static void |
setSoLinger(int fd,
int soLinger) |
static void |
setTcpCork(int fd,
int tcpCork) |
static void |
setTcpKeepCnt(int fd,
int probes) |
static void |
setTcpKeepIdle(int fd,
int seconds) |
static void |
setTcpKeepIntvl(int fd,
int seconds) |
static void |
setTcpNoDelay(int fd,
int tcpNoDelay) |
static void |
setTrafficClass(int fd,
int tcpNoDelay) |
static void |
shutdown(int fd,
boolean read,
boolean write) |
static int |
sizeofEpollEvent() |
static int |
socketDgramFd() |
static int |
socketDomainFd() |
static int |
socketStreamFd() |
static int |
splice(int fd,
int offIn,
int fdOut,
int offOut,
int len) |
static void |
tcpInfo(int fd,
EpollTcpInfo info) |
static int |
write(int fd,
ByteBuffer buf,
int pos,
int limit) |
static int |
writeAddress(int fd,
long address,
int pos,
int limit) |
static long |
writev(int fd,
ByteBuffer[] buffers,
int offset,
int length) |
static long |
writevAddresses(int fd,
long memoryAddress,
int length) |
public static final int EPOLLIN
public static final int EPOLLOUT
public static final int EPOLLRDHUP
public static final int EPOLLET
public static final int IOV_MAX
public static final int UIO_MAX_IOV
public static final boolean IS_SUPPORTING_SENDMMSG
public static IOException newIOException(String method, int err)
public static int eventFd()
public static void eventFdWrite(int fd, long value)
public static void eventFdRead(int fd)
public static int epollCreate()
public static int epollWait(int efd, io.netty.channel.epoll.EpollEventArray events, int timeout) throws IOException
IOException
public static void epollCtlAdd(int efd, int fd, int flags) throws IOException
IOException
public static void epollCtlMod(int efd, int fd, int flags) throws IOException
IOException
public static void epollCtlDel(int efd, int fd) throws IOException
IOException
public static void close(int fd) throws IOException
IOException
public static int splice(int fd, int offIn, int fdOut, int offOut, int len) throws IOException
IOException
public static long pipe() throws IOException
IOException
public static int write(int fd, ByteBuffer buf, int pos, int limit) throws IOException
IOException
public static int writeAddress(int fd, long address, int pos, int limit) throws IOException
IOException
public static long writev(int fd, ByteBuffer[] buffers, int offset, int length) throws IOException
IOException
public static long writevAddresses(int fd, long memoryAddress, int length) throws IOException
IOException
public static int read(int fd, ByteBuffer buf, int pos, int limit) throws IOException
IOException
public static int readAddress(int fd, long address, int pos, int limit) throws IOException
IOException
public static long sendfile(int dest, DefaultFileRegion src, long baseOffset, long offset, long length) throws IOException
IOException
public static int sendTo(int fd, ByteBuffer buf, int pos, int limit, InetAddress addr, int port) throws IOException
IOException
public static int sendToAddress(int fd, long memoryAddress, int pos, int limit, InetAddress addr, int port) throws IOException
IOException
public static int sendToAddresses(int fd, long memoryAddress, int length, InetAddress addr, int port) throws IOException
IOException
public static io.netty.channel.epoll.EpollDatagramChannel.DatagramSocketAddress recvFrom(int fd, ByteBuffer buf, int pos, int limit) throws IOException
IOException
public static io.netty.channel.epoll.EpollDatagramChannel.DatagramSocketAddress recvFromAddress(int fd, long memoryAddress, int pos, int limit) throws IOException
IOException
public static int sendmmsg(int fd, io.netty.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket[] msgs, int offset, int len) throws IOException
IOException
public static int socketStreamFd()
public static int socketDgramFd()
public static int socketDomainFd()
public static void bind(int fd, SocketAddress socketAddress) throws IOException
IOException
public static void listen(int fd, int backlog) throws IOException
IOException
public static boolean connect(int fd, SocketAddress socketAddress) throws IOException
IOException
public static boolean finishConnect(int fd) throws IOException
IOException
public static InetSocketAddress remoteAddress(int fd)
public static InetSocketAddress localAddress(int fd)
public static int accept(int fd, byte[] addr) throws IOException
IOException
public static int recvFd(int fd) throws IOException
IOException
public static int sendFd(int socketFd, int fd) throws IOException
IOException
public static void shutdown(int fd, boolean read, boolean write) throws IOException
IOException
public static int getReceiveBufferSize(int fd)
public static int getSendBufferSize(int fd)
public static int isKeepAlive(int fd)
public static int isReuseAddress(int fd)
public static int isReusePort(int fd)
public static int isTcpNoDelay(int fd)
public static int isTcpCork(int fd)
public static int getSoLinger(int fd)
public static int getTrafficClass(int fd)
public static int isBroadcast(int fd)
public static int getTcpKeepIdle(int fd)
public static int getTcpKeepIntvl(int fd)
public static int getTcpKeepCnt(int fd)
public static int getSoError(int fd)
public static void setKeepAlive(int fd, int keepAlive)
public static void setReceiveBufferSize(int fd, int receiveBufferSize)
public static void setReuseAddress(int fd, int reuseAddress)
public static void setReusePort(int fd, int reuseAddress)
public static void setSendBufferSize(int fd, int sendBufferSize)
public static void setTcpNoDelay(int fd, int tcpNoDelay)
public static void setTcpCork(int fd, int tcpCork)
public static void setSoLinger(int fd, int soLinger)
public static void setTrafficClass(int fd, int tcpNoDelay)
public static void setBroadcast(int fd, int broadcast)
public static void setTcpKeepIdle(int fd, int seconds)
public static void setTcpKeepIntvl(int fd, int seconds)
public static void setTcpKeepCnt(int fd, int probes)
public static void tcpInfo(int fd, EpollTcpInfo info)
public static String kernelVersion()
public static int sizeofEpollEvent()
public static int offsetofEpollData()
Copyright © 2008–2015 The Netty Project. All rights reserved.