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