Instance Method (Default implementation)swift-nio 2.84.0NIOCore
channelReadComplete(context:)
ChannelHandler.swift:295func channelReadComplete(context: ChannelHandlerContext)
func channelReadComplete(context: ChannelHandlerContext)
s7NIOCore22_ChannelInboundHandlerPAAE19channelReadComplete7contextyAA0bD7ContextC_tF
What are these?6HYNV
import NIOCore
The core abstractions that make up SwiftNIO.
protocol _ChannelInboundHandler : ChannelHandler
Untyped ChannelHandler
which handles inbound I/O events.
final class ChannelHandlerContext
Every ChannelHandler
has – when added to a ChannelPipeline
– a corresponding ChannelHandlerContext
which is the way ChannelHandler
s can interact with other ChannelHandler
s in the pipeline.
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 the Channel
needs to yield to the event loop to process other I/O events for other Channel
s. If ChannelOptions.autoRead
is false
no further read attempt will be made until ChannelHandlerContext.read
or Channel.read
is explicitly called.
func channelActive(context: ChannelHandlerContext)
func channelInactive(context: ChannelHandlerContext)
func channelRead(context: ChannelHandlerContext, data: NIOAny)
func channelRegistered(context: ChannelHandlerContext)
func channelUnregistered(context: ChannelHandlerContext)
func channelWritabilityChanged(context: ChannelHandlerContext)
func errorCaught(context: ChannelHandlerContext, error: any Error)
func userInboundEventTriggered(context: ChannelHandlerContext, event: Any)