Protocolswift-nio 2.72.0NIOCore
ChannelInboundInvoker
Fire inbound events related to a Channel
through the ChannelPipeline
until its end is reached or it’s consumed by a ChannelHandler
.
protocol ChannelInboundInvoker
Requirements
Instance members
func fireChannelActive(
) Called once a
Channel
becomes active.func fireChannelInactive(
) Called once a
Channel
becomes inactive.func fireChannelRead(NIOAny
) Called once there is some data read for a
Channel
that needs processing.func fireChannelReadComplete(
) Called once there is no more data to read immediately on a
Channel
. Any new data received will be handled later.func fireChannelRegistered(
) Called once a
Channel
was registered to itsEventLoop
and so IO will be processed.func fireChannelUnregistered(
) Called once a
Channel
was unregistered from itsEventLoop
which means no IO will be handled for aChannel
anymore.func fireChannelWritabilityChanged(
) Called when a
Channel
’s writable state changes.func fireErrorCaught(Error
) Called when an inbound operation
Error
was caught.func fireUserInboundEventTriggered(Any
) Trigger a custom user inbound event which will flow through the
ChannelPipeline
.
See also
protocol ChannelCore
The core
Channel
methods that are for internal use of theChannel
implementation only.protocol ChannelInvoker
A protocol that signals that outbound and inbound events are triggered by this invoker.
protocol ChannelOutboundInvoker
Allows users to invoke an “outbound” operation related to a
Channel
that will flow through theChannelPipeline
until it will finally be executed by the theChannelCore
implementation.