![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Netty
zhang011003
这个作者很懒,什么都没留下…
展开
-
通过走读netty源码来学习netty(一)(基于netty-4.0.19.Final)
本文基于netty-4.0.19.Final包 本文使用netty事例包中的EchoServer.java类来进行分析 先看EchoServer.java中run方法代码 public void run() throws Exception { // Configure the server. EventLoopGroup bossGro...原创 2014-06-12 17:13:29 · 95 阅读 · 0 评论 -
通过走读netty源码来学习netty(二)(基于netty-4.0.19.Final)
今天继续走读netty源码 上次走读到NioEventLoop的register方法,进入NioEventLoop类中,发现register方法并不在该类中,而是在父类SingleThreadEventLoop中,进入父类的对应方法后,发现最终调用的是unsafe的register方法 channel.unsafe().register(this, promise); 有两个参...原创 2014-06-20 11:03:11 · 106 阅读 · 0 评论