Instance Method (Default implementation)swift-nio 2.84.0NIOCore
channelRegistered(context:)
ChannelHandler.swift:275func channelRegistered(context: ChannelHandlerContext)
func channelRegistered(context: ChannelHandlerContext)
s7NIOCore22_ChannelInboundHandlerPAAE17channelRegistered7contextyAA0bD7ContextC_tF
What are these?4Z4SL
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 channelRegistered(context: ChannelHandlerContext)
Called when the Channel
has successfully registered with its EventLoop
to handle I/O.
func channelActive(context: ChannelHandlerContext)
func channelInactive(context: ChannelHandlerContext)
func channelRead(context: ChannelHandlerContext, data: NIOAny)
func channelReadComplete(context: ChannelHandlerContext)
func channelUnregistered(context: ChannelHandlerContext)
func channelWritabilityChanged(context: ChannelHandlerContext)
func errorCaught(context: ChannelHandlerContext, error: any Error)
func userInboundEventTriggered(context: ChannelHandlerContext, event: Any)