channelRead(context:data:)
ChannelHandlers.swift:233func channelRead(context: ChannelHandlerContext, data: NIOAny) func channelRead(context: ChannelHandlerContext, data: NIOAny) s7NIOCore16IdleStateHandlerC11channelRead7context4datayAA07ChannelD7ContextC_AA6NIOAnyVtF What are these?6D3EWimport NIOCoreThe core abstractions that make up SwiftNIO.
final class IdleStateHandlerTriggers an IdleStateEvent when a Channel has not performed read, write, or both operation for a while.
final class ChannelHandlerContextEvery ChannelHandler has – when added to a ChannelPipeline – a corresponding ChannelHandlerContext which is the way ChannelHandlers can interact with other ChannelHandlers in the pipeline.
struct NIOAnyNIOAny is an opaque container for values of any type, similar to Swift’s builtin Any type. Contrary to Any the overhead of NIOAny depends on the the type of the wrapped value. Certain types that are important for the performance of a SwiftNIO application like ByteBuffer, FileRegion and AddressEnvelope<ByteBuffer> can be expected to be wrapped almost without overhead. All others will have similar performance as if they were passed as an Any as NIOAny just like Any will contain them within an existential container.
init(readTimeout: TimeAmount? = nil, writeTimeout: TimeAmount? = nil, allTimeout: TimeAmount? = nil) let allTimeout: TimeAmount?let readTimeout: TimeAmount?let writeTimeout: TimeAmount?func channelActive(context: ChannelHandlerContext) func channelReadComplete(context: ChannelHandlerContext) func handlerAdded(context: ChannelHandlerContext) func handlerRemoved(context: ChannelHandlerContext) func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?) enum IdleStateEventA user event triggered by IdleStateHandler when a Channel is idle.
typealias InboundIn = NIOAnytypealias InboundOut = NIOAnytypealias OutboundIn = NIOAnytypealias OutboundOut = NIOAny