1.实例化、初始化、并注册channel
Java · 4 notes
- 2.79 1. Instantiate the Channelhistorical
Netty invokes the NioServerSocketChannel constructor through reflection and creates the underlying Java NIO channel. These notes trace that instantiation.
- 2. Initialize Channelhistorical
Channel initialization adds a ChannelInitializer to the pipeline and connects the handlers configured in ServerBootstrap.
- 2.91 3. Register the Channelhistorical
A server Channel uses EventLoopGroup to choose an event loop and register itself. These notes trace the process through ServerBootstrap calls.
- Channel Class Hierarchyhistorical
Channel abstracts network I/O in Netty. These notes examine skeletal implementations and relationships among channel types through the class hierarchy.