public final class EpollDomainSocketChannel extends AbstractEpollStreamChannel implements io.netty.channel.unix.DomainSocketChannel
AbstractEpollStreamChannel.SpliceInTask| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
protected int |
flags |
| Constructor and Description |
|---|
EpollDomainSocketChannel() |
EpollDomainSocketChannel(io.netty.channel.Channel parent,
io.netty.channel.epoll.LinuxSocket fd) |
EpollDomainSocketChannel(int fd) |
EpollDomainSocketChannel(int fd,
boolean active) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkResolvable(InetSocketAddress addr) |
EpollDomainSocketChannelConfig |
config() |
protected void |
doBeginRead() |
protected void |
doBind(SocketAddress localAddress) |
protected boolean |
doConnect(SocketAddress remoteAddress,
SocketAddress localAddress)
Connect to the remote peer
|
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) |
protected int |
doWriteSingle(io.netty.channel.ChannelOutboundBuffer in)
Attempt to write a single object.
|
io.netty.channel.unix.FileDescriptor |
fd() |
protected Object |
filterOutboundMessage(Object msg) |
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.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.epoll.AbstractEpollChannel.AbstractEpollUnsafe |
newUnsafe() |
io.netty.channel.unix.PeerCredentials |
peerCredentials()
Returns the unix credentials (uid, gid, pid) of the peer
SO_PEERCRED
|
io.netty.channel.unix.DomainSocketAddress |
remoteAddress() |
protected io.netty.channel.unix.DomainSocketAddress |
remoteAddress0() |
doClose, doShutdownOutput, doWrite, isInputShutdown, isOutputShutdown, isShutdown, metadata, shutdown, shutdown, shutdownInput, shutdownInput, shutdownOutput, shutdownOutput, spliceTo, spliceTo, spliceTo, spliceToalloc, 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, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, toString, unsafe, 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, parent, pipeline, read, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlushcompareTopublic EpollDomainSocketChannel()
public EpollDomainSocketChannel(int fd)
public EpollDomainSocketChannel(io.netty.channel.Channel parent,
io.netty.channel.epoll.LinuxSocket fd)
public EpollDomainSocketChannel(int fd,
boolean active)
protected io.netty.channel.epoll.AbstractEpollChannel.AbstractEpollUnsafe newUnsafe()
newUnsafe in class AbstractEpollStreamChannelprotected io.netty.channel.unix.DomainSocketAddress localAddress0()
protected io.netty.channel.unix.DomainSocketAddress remoteAddress0()
protected void doBind(SocketAddress localAddress) throws Exception
Exceptionpublic EpollDomainSocketChannelConfig config()
config in interface io.netty.channel.Channelconfig in interface io.netty.channel.unix.DomainSocketChannelprotected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
Exceptionpublic io.netty.channel.unix.DomainSocketAddress remoteAddress()
remoteAddress in interface io.netty.channel.ChannelremoteAddress in interface io.netty.channel.unix.DomainSocketChannelremoteAddress 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.DomainSocketChannellocalAddress in class io.netty.channel.AbstractChannelprotected int doWriteSingle(io.netty.channel.ChannelOutboundBuffer in)
throws Exception
AbstractEpollStreamChanneldoWriteSingle in class AbstractEpollStreamChannelin - the collection which contains objects to write.ChannelConfig.getWriteSpinCount(). The typical use cases are as follows:
ByteBuf (or other empty content)
is encounteredChannelUtils.WRITE_STATUS_SNDBUF_FULL - if an attempt to write data was made to the OS, but
no data was acceptedException - If an I/O error occurs.protected Object filterOutboundMessage(Object msg)
filterOutboundMessage in class AbstractEpollStreamChannel@UnstableApi
public io.netty.channel.unix.PeerCredentials peerCredentials()
throws IOException
IOExceptionpublic 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.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.ExceptionCopyright © 2008–2019 The Netty Project. All rights reserved.