摘要: 参考文献:极客时间傅健老师的《Netty源码剖析与实战》Talk is cheap.show me the code! 主线:worker thread 触发pipeline.fireChannelRead(byteBuf)把读取到的数据传播出去 源码解释: 还和之前一样,在NioEventLoop 阅读全文
posted @ 2019-11-07 17:38 DC红茶 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 参考文献:极客时间傅健老师的《Netty源码剖析与实战》Talk is cheap.show me the code! 主线:worker thread ①多路复用器(Selector)接受到OP_READ事件 ②处理OP_READ事件:NioSocketChannel.NioSocketChann 阅读全文
posted @ 2019-11-07 16:58 DC红茶 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 参考文献:极客时间傅健老师的《Netty源码剖析与实战》Talk is cheap.show me the code! 主线: 和启动一样也是有两个线程完成的,boss thread 和 worker thread; boss thread: ①NioEventLoop中的selector轮询创建连 阅读全文
posted @ 2019-11-07 15:09 DC红茶 阅读(605) 评论(0) 推荐(0) 编辑