Package io.netty.channel.uring
Class IoUringServerSocketChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.uring.AbstractIoUringChannel
io.netty.channel.uring.AbstractIoUringServerChannel
io.netty.channel.uring.IoUringServerSocketChannel
- All Implemented Interfaces:
Channel,ChannelOutboundInvoker,ServerChannel,ServerSocketChannel,UnixChannel,AttributeMap,Comparable<Channel>
public final class IoUringServerSocketChannel
extends AbstractIoUringServerChannel
implements ServerSocketChannel
-
Nested Class Summary
Nested classes/interfaces inherited from class io.netty.channel.uring.AbstractIoUringChannel
AbstractIoUringChannel.AbstractUringUnsafeNested classes/interfaces inherited from class io.netty.channel.AbstractChannel
AbstractChannel.AbstractUnsafeNested classes/interfaces inherited from interface io.netty.channel.Channel
Channel.Unsafe -
Field Summary
FieldsFields inherited from class io.netty.channel.uring.AbstractIoUringChannel
active, socket, writeTracker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the configuration of this channel.voiddoBind(SocketAddress localAddress) Bind theChannelto theSocketAddressReturns the local address where this channel is bound to.(package private) ChannelnewChildChannel(int fd, ByteBuffer acceptedAddressMemory) Returns the remote address where this channel is connected to.Methods inherited from class io.netty.channel.uring.AbstractIoUringServerChannel
cancelOutstandingReads, cancelOutstandingWrites, doClose, doWrite, isPollInFirst, isStreamSocket, metadata, newUnsafe, socketIsEmptyMethods inherited from class io.netty.channel.uring.AbstractIoUringChannel
allowMultiShotPollIn, autoReadCleared, checkResolvable, doBeginRead, doDeregister, doDisconnect, doRegister, doShutdownOutput, doShutdownOutput0, fd, filterOutboundMessage, isActive, isCompatible, isOpen, localAddress0, newDirectBuffer, newDirectBuffer, nextOpsId, registration, remoteAddress0, resetCachedAddresses, schedulePollRdHup, scheduleWriteIfNeeded, submitAndRunNowMethods inherited from class io.netty.channel.AbstractChannel
closeFuture, compareTo, doRegister, equals, eventLoop, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, maxMessagesPerWrite, newChannelPipeline, newId, parent, pipeline, toString, unsafe, validateFileRegion, voidPromiseMethods inherited from class io.netty.util.DefaultAttributeMap
attr, hasAttrMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.netty.util.AttributeMap
attr, hasAttrMethods inherited from interface io.netty.channel.Channel
alloc, 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, writeAndFlushMethods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
config
-
-
Constructor Details
-
IoUringServerSocketChannel
public IoUringServerSocketChannel()
-
-
Method Details
-
config
Description copied from interface:ChannelReturns the configuration of this channel.- Specified by:
configin interfaceChannel- Specified by:
configin interfaceServerSocketChannel
-
newChildChannel
- Specified by:
newChildChannelin classAbstractIoUringServerChannel
-
remoteAddress
Description copied from interface:ChannelReturns the remote address where this channel is connected to. The returnedSocketAddressis supposed to be down-cast into more concrete type such asInetSocketAddressto retrieve the detailed information.- Specified by:
remoteAddressin interfaceChannel- Specified by:
remoteAddressin interfaceServerSocketChannel- Overrides:
remoteAddressin classAbstractChannel- Returns:
- the remote address of this channel.
nullif this channel is not connected. If this channel is not connected but it can receive messages from arbitrary remote addresses (e.g.DatagramChannel, useDefaultAddressedEnvelope.recipient()to determine the origination of the received message as this method will returnnull.
-
localAddress
Description copied from interface:ChannelReturns the local address where this channel is bound to. The returnedSocketAddressis supposed to be down-cast into more concrete type such asInetSocketAddressto retrieve the detailed information.- Specified by:
localAddressin interfaceChannel- Specified by:
localAddressin interfaceServerSocketChannel- Overrides:
localAddressin classAbstractChannel- Returns:
- the local address of this channel.
nullif this channel is not bound.
-
doBind
Description copied from class:AbstractChannelBind theChannelto theSocketAddress- Overrides:
doBindin classAbstractIoUringChannel- Throws:
Exception
-