Instance Method (Default implementation)swift-nio 2.81.0NIOCore
channelActive(context:)
ChannelHandler.swift:283func channelActive(context: ChannelHandlerContext)
func channelActive(context: ChannelHandlerContext)
s7NIOCore22_ChannelInboundHandlerPAAE13channelActive7contextyAA0bD7ContextC_tF
What are these?5CG5X
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 channelActive(context: ChannelHandlerContext)
Called when the Channel
has become active, and is able to send and receive data.
func channelInactive(context: ChannelHandlerContext)
func channelRead(context: ChannelHandlerContext, data: NIOAny)
func channelReadComplete(context: ChannelHandlerContext)
func channelRegistered(context: ChannelHandlerContext)
func channelUnregistered(context: ChannelHandlerContext)
func channelWritabilityChanged(context: ChannelHandlerContext)
func errorCaught(context: ChannelHandlerContext, error: Error)
func userInboundEventTriggered(context: ChannelHandlerContext, event: Any)