public final class KQueueSocketChannel extends AbstractKQueueStreamChannel implements io.netty.channel.socket.SocketChannel
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
| Constructor and Description |
|---|
KQueueSocketChannel() |
KQueueSocketChannel(int fd) |
KQueueSocketChannel(io.netty.channel.socket.InternetProtocolFamily protocol) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkResolvable(InetSocketAddress addr) |
KQueueSocketChannelConfig |
config() |
protected void |
doBeginRead() |
protected void |
doBind(SocketAddress local) |
protected void |
doClose() |
protected boolean |
doConnect(SocketAddress remoteAddress,
SocketAddress localAddress)
Connect to the remote peer
|
protected boolean |
doConnect0(SocketAddress remoteAddress,
SocketAddress localAddress) |
protected void |
doDeregister() |
protected void |
doDisconnect() |
protected int |
doReadBytes(io.netty.buffer.ByteBuf byteBuf)
Read bytes into the given
ByteBuf and return the amount. |
protected void |
doRegister() |
protected int |
doWriteBytes(io.netty.channel.ChannelOutboundBuffer in,
io.netty.buffer.ByteBuf buf) |
io.netty.channel.unix.FileDescriptor |
fd() |
boolean |
isActive() |
protected boolean |
isCompatible(io.netty.channel.EventLoop loop) |
boolean |
isOpen() |
InetSocketAddress |
localAddress() |
protected SocketAddress |
localAddress0() |
protected io.netty.buffer.ByteBuf |
newDirectBuffer(io.netty.buffer.ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf, and releases the original one. |
protected io.netty.buffer.ByteBuf |
newDirectBuffer(Object holder,
io.netty.buffer.ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf, and releases the specified holder. |
protected io.netty.channel.kqueue.AbstractKQueueChannel.AbstractKQueueUnsafe |
newUnsafe() |
io.netty.channel.socket.ServerSocketChannel |
parent() |
InetSocketAddress |
remoteAddress() |
protected SocketAddress |
remoteAddress0() |
doShutdownOutput, doWrite, doWriteSingle, filterOutboundMessage, isInputShutdown, isOutputShutdown, isShutdown, metadata, shutdown, shutdown, shutdownInput, shutdownInput, shutdownOutput, shutdownOutputalloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, equals, eventLoop, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, pipeline, read, toString, unsafe, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlushclone, finalize, getClass, notify, notifyAll, wait, wait, waitisInputShutdown, isOutputShutdown, isShutdown, shutdown, shutdown, shutdownInput, shutdownInput, shutdownOutput, shutdownOutputalloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, metadata, pipeline, read, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlushcompareTopublic KQueueSocketChannel()
public KQueueSocketChannel(io.netty.channel.socket.InternetProtocolFamily protocol)
public KQueueSocketChannel(int fd)
public InetSocketAddress remoteAddress()
remoteAddress in interface io.netty.channel.ChannelremoteAddress in interface io.netty.channel.socket.SocketChannelremoteAddress in class io.netty.channel.AbstractChannelpublic InetSocketAddress localAddress()
localAddress in interface io.netty.channel.ChannellocalAddress in interface io.netty.channel.socket.SocketChannellocalAddress in class io.netty.channel.AbstractChannelpublic KQueueSocketChannelConfig config()
config in interface io.netty.channel.Channelconfig in interface io.netty.channel.socket.SocketChannelpublic io.netty.channel.socket.ServerSocketChannel parent()
parent in interface io.netty.channel.Channelparent in interface io.netty.channel.socket.SocketChannelparent in class io.netty.channel.AbstractChannelprotected boolean doConnect0(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
Exceptionprotected io.netty.channel.kqueue.AbstractKQueueChannel.AbstractKQueueUnsafe newUnsafe()
newUnsafe in class AbstractKQueueStreamChannelpublic final io.netty.channel.unix.FileDescriptor fd()
fd in interface io.netty.channel.unix.UnixChannelpublic boolean isActive()
isActive in interface io.netty.channel.Channelprotected void doClose()
throws Exception
doClose in class io.netty.channel.AbstractChannelExceptionprotected void doDisconnect()
throws Exception
doDisconnect in class io.netty.channel.AbstractChannelExceptionprotected boolean isCompatible(io.netty.channel.EventLoop loop)
isCompatible in class io.netty.channel.AbstractChannelpublic boolean isOpen()
isOpen in interface io.netty.channel.Channelprotected void doDeregister()
throws Exception
doDeregister in class io.netty.channel.AbstractChannelExceptionprotected final void doBeginRead()
throws Exception
doBeginRead in class io.netty.channel.AbstractChannelExceptionprotected void doRegister()
throws Exception
doRegister in class io.netty.channel.AbstractChannelExceptionprotected final io.netty.buffer.ByteBuf newDirectBuffer(io.netty.buffer.ByteBuf buf)
ByteBuf, and releases the original one.protected final io.netty.buffer.ByteBuf newDirectBuffer(Object holder, io.netty.buffer.ByteBuf buf)
ByteBuf, and releases the specified holder.
The caller must ensure that the holder releases the original ByteBuf when the holder is released by
this method.protected static void checkResolvable(InetSocketAddress addr)
protected final int doReadBytes(io.netty.buffer.ByteBuf byteBuf)
throws Exception
ByteBuf and return the amount.Exceptionprotected final int doWriteBytes(io.netty.channel.ChannelOutboundBuffer in,
io.netty.buffer.ByteBuf buf)
throws Exception
Exceptionprotected void doBind(SocketAddress local) throws Exception
doBind in class io.netty.channel.AbstractChannelExceptionprotected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
Exceptionprotected SocketAddress localAddress0()
localAddress0 in class io.netty.channel.AbstractChannelprotected SocketAddress remoteAddress0()
remoteAddress0 in class io.netty.channel.AbstractChannelCopyright © 2008–2024 The Netty Project. All rights reserved.