forked from yongshun/learn_netty_source_code
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
864 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
520 changes: 520 additions & 0 deletions
520
Netty 源码分析之 一 揭开 Bootstrap 神秘的红盖头 (客户端)/Netty 源码分析之 一 揭开 Bootstrap 神秘的红盖头 (客户端).md
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
312 changes: 312 additions & 0 deletions
312
... 源码分析之 一 揭开 Bootstrap 神秘的红盖头 (服务器端)/Netty 源码分析之 一 揭开 Bootstrap 神秘的红盖头 (服务器端).md
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+50.6 KB
Netty 源码分析之 一 揭开 Bootstrap 神秘的红盖头 (服务器端)/NioServerSocketChannel 类层次结构.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+166 KB
Netty 源码分析之 一 揭开 Bootstrap 神秘的红盖头 (服务器端)/Server 端 bossGroup 与 workerGroup 的图示.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+310 KB
Netty 源码分析之 一 揭开 Bootstrap 神秘的红盖头 (服务器端)/Server 端 handler 与 childHandler 图示.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+52.7 KB
... 源码分析之 一 揭开 Bootstrap 神秘的红盖头 (服务器端)/新客户端连接之后, NioSocketChannel 对应的 pipeline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
在工作中, 虽然我经常使用到 Netty 库, 但是很多时候对 Netty 的一些概念还是处于知其然, 不知其所以然的状态, 因此就萌生了学习 Netty 源码的想法. | ||
刚开始看源码的时候, 自然是比较痛苦的, 主要原因有两个: 第一, 网上没有和详尽的 Netty 源码分析的教程; 第二, 我也是第一次系统地学习这么大代码量的源码. 由于这两个原因, 最开始时, 看代码的进度很慢, 甚至一度想放弃了, 不过最后很庆幸自己能够坚持下去, 并因此从 Netty 源码中学到了很多宝贵的知识. | ||
|
||
下面我将自己在 Netty 源码学习过程记录下来, 整理成博客, 与大家分享交流, 共同学习. 由于本人才疏学浅, 文章中难免有不少错误之处, 期待能得到大家的建议和斧正. | ||
|
||
最后, 忘了提了, 我使用的 Netty 版本: **4.0.33.Final** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 源码之下无秘密 ── 做最好的 Netty 源码分析教程 | ||
|
||
|
||
@(Netty)[Java, Netty, Netty 源码分析] | ||
|
||
[TOC] | ||
|
||
|
||
---------- | ||
## 背景 | ||
在工作中, 虽然我经常使用到 Netty 库, 但是很多时候对 Netty 的一些概念还是处于知其然, 不知其所以然的状态, 因此就萌生了学习 Netty 源码的想法. | ||
刚开始看源码的时候, 自然是比较痛苦的, 主要原因有两个: 第一, 网上没有和详尽的 Netty 源码分析的教程; 第二, 我也是第一次系统地学习这么大代码量的源码. 由于这两个原因, 最开始时, 看代码的进度很慢, 甚至一度想放弃了, 不过最后很庆幸自己能够坚持下去, 并因此从 Netty 源码中学到了很多宝贵的知识. | ||
|
||
下面我将自己在 Netty 源码学习过程记录下来, 整理成博客, 与大家分享交流, 共同学习. 由于本人才疏学浅, 文章中难免有不少错误之处, 期待能得到大家的建议和斧正. | ||
|
||
最后, 忘了提了, 我使用的 Netty 版本: **4.0.33.Final** | ||
|
||
PS. 不小心做了一次标题党, 不过正如标题所言, 即使不是最好的, 那也要尽力 **做到最好的**! | ||
|
||
## 目录 | ||
### Netty 源码分析之 番外篇 Java NIO 的前生今世 | ||
### Netty 源码分析之 零 磨刀不误砍柴工 源码分析环境搭建 | ||
### Netty 源码分析之 一 揭开 Bootstrap 神秘的红盖头 | ||
### Netty 源码分析之 二 贯穿 Netty 的大动脉 ── ChannelPipeline | ||
### Netty 源码分析之 三 我就是大名鼎鼎的 EventLoop | ||
### Netty 源码分析之 四 Promise 与 Future: 双子星的秘密 |