Required Instance Methodswift-nio 2.72.0NIOCore
errorCaught(context:error:)
An error was encountered earlier in the inbound ChannelPipeline
.
func errorCaught(context: ChannelHandlerContext, error: Error)
Parameters
This should call context.fireErrorCaught
to forward the operation to the next _ChannelInboundHandler
in the ChannelPipeline
if you want to allow the next handler to also handle the error.
Other requirements
View members
Hide members
This section is hidden by default because it contains too many (8) members.
Instance members
func channelActive(context: ChannelHandlerContext
) Called when the
Channel
has become active, and is able to send and receive data.func channelInactive(context: ChannelHandlerContext
) Called when the
Channel
has become inactive and is no longer able to send and receive data.func channelRead(context: ChannelHandlerContext, data: NIOAny
) Called when some data has been read from the remote peer.
func channelReadComplete(context: ChannelHandlerContext
) Called when the
Channel
has completed its current read loop, either because no more data is available to read from the transport at this time, or because theChannel
needs to yield to the event loop to process other I/O events for otherChannel
s. IfChannelOptions.autoRead
isfalse
no further read attempt will be made untilChannelHandlerContext.read
orChannel.read
is explicitly called.func channelRegistered(context: ChannelHandlerContext
) Called when the
Channel
has successfully registered with itsEventLoop
to handle I/O.func channelUnregistered(context: ChannelHandlerContext
) Called when the
Channel
has unregistered from itsEventLoop
, and so will no longer be receiving I/O events.func channelWritabilityChanged(context: ChannelHandlerContext
) The writability state of the
Channel
has changed, either because it has buffered more data than the writability high water mark, or because the amount of buffered data has dropped below the writability low water mark. You can check the state withChannel.isWritable
.func userInboundEventTriggered(context: ChannelHandlerContext, event: Any
) Called when a user inbound event has been triggered.