public final class EpollServerDomainSocketChannel extends AbstractEpollServerChannel implements io.netty.channel.unix.ServerDomainSocketChannel
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
protected LinuxSocket |
socket |
| Constructor and Description |
|---|
EpollServerDomainSocketChannel() |
EpollServerDomainSocketChannel(int fd) |
EpollServerDomainSocketChannel(int fd,
boolean active) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkResolvable(InetSocketAddress addr) |
EpollServerChannelConfig |
config() |
protected void |
doBeginRead() |
protected void |
doBind(SocketAddress localAddress) |
protected void |
doClose() |
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(io.netty.channel.ChannelPromise promise) |
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() |
io.netty.channel.unix.DomainSocketAddress |
localAddress() |
protected io.netty.channel.unix.DomainSocketAddress |
localAddress0() |
protected io.netty.channel.Channel |
newChildChannel(int fd,
byte[] addr,
int offset,
int len) |
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 EpollIoRegistration |
registration() |
io.netty.channel.unix.DomainSocketAddress |
remoteAddress() |
protected void |
setFlag(int flag) |
doConnect, doWrite, filterOutboundMessage, metadata, newUnsafe, remoteAddress0closeFuture, compareTo, doRegister, doShutdownOutput, equals, eventLoop, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, maxMessagesPerWrite, newChannelPipeline, newId, parent, pipeline, toString, unsafe, validateFileRegion, voidPromiseclone, finalize, getClass, notify, notifyAll, wait, wait, waitalloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, eventLoop, flush, getOption, id, isActive, isOpen, isRegistered, isWritable, metadata, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, setOption, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushcompareToprotected final LinuxSocket socket
protected volatile boolean active
public EpollServerDomainSocketChannel()
public EpollServerDomainSocketChannel(int fd)
public EpollServerDomainSocketChannel(int fd,
boolean active)
protected io.netty.channel.Channel newChildChannel(int fd,
byte[] addr,
int offset,
int len)
throws Exception
newChildChannel in class AbstractEpollServerChannelExceptionprotected io.netty.channel.unix.DomainSocketAddress localAddress0()
protected void doBind(SocketAddress localAddress) throws Exception
Exceptionpublic EpollServerChannelConfig config()
config in interface io.netty.channel.Channelpublic io.netty.channel.unix.DomainSocketAddress remoteAddress()
remoteAddress in interface io.netty.channel.ChannelremoteAddress in interface io.netty.channel.unix.ServerDomainSocketChannelremoteAddress in class io.netty.channel.AbstractChannelpublic io.netty.channel.unix.DomainSocketAddress localAddress()
localAddress in interface io.netty.channel.ChannellocalAddress in interface io.netty.channel.unix.ServerDomainSocketChannellocalAddress in class io.netty.channel.AbstractChannelprotected void setFlag(int flag)
throws IOException
IOExceptionprotected final EpollIoRegistration registration()
public 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 doDisconnect()
throws Exception
doDisconnect in class io.netty.channel.AbstractChannelExceptionpublic boolean isOpen()
isOpen in interface io.netty.channel.Channelprotected void doDeregister()
throws Exception
doDeregister in class io.netty.channel.AbstractChannelExceptionprotected boolean isCompatible(io.netty.channel.EventLoop loop)
isCompatible in class io.netty.channel.AbstractChannelprotected void doBeginRead()
throws Exception
doBeginRead in class io.netty.channel.AbstractChannelExceptionprotected void doRegister(io.netty.channel.ChannelPromise promise)
doRegister in class io.netty.channel.AbstractChannelprotected 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.ExceptionCopyright © 2008–2024 The Netty Project. All rights reserved.