![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Netty
mono7
这个作者很懒,什么都没留下…
展开
-
Netty实战进阶
原创 2020-08-30 23:30:22 · 95 阅读 · 0 评论 -
Netty实战进阶
原创 2020-08-23 21:39:13 · 234 阅读 · 0 评论 -
Netty 实战入门 写一个“玩具”项目
编写网络应用程序基本步骤案例介绍及数据结构设计完善客户端Netty 编程中易错点解析LengthFieldBasedFrameDecoder 中 initialBytesToStrip 未考虑设置ChannelHandler 顺序不正确ChannelHandler 该共享不共享,不该共享却共享分配 ByteBuf :分配器直接用 ByteBufAllocator.DEFAULT 等,而不是采用ChannelHandlerContext.alloc()未考虑 ByteBuf 的释原创 2020-08-16 23:15:47 · 120 阅读 · 0 评论 -
Netty源码---从“线”(请求处理)的角度剖析
Netty源码核心包速览our thread创建selector创建serversocketchannel初始化serversocketchannel给serversocketchannel从bossgroup中选择一个NioEventLoopboss thread将serversocketchannel注册到选择的NioEventLoop的selector •绑定地址启动注册接受连接事件(OP_ACCEPT)到selector上启动服务的本质Selector selecto原创 2020-08-09 22:29:20 · 150 阅读 · 0 评论 -
Netty源码:从“点”(领域知识)的角度剖析
文章目录Netty切换三种I/O模式什么是经典的三种I/O模式阻塞与非阻塞同步与异步Netty对三种I/O模式的支持为什么Netty有多种NIO实现NIO一定优于BIO么Netty切换三种I/O模式什么是经典的三种I/O模式Netty对三种I/O模式的支持为什么Netty仅支持NIO为什么Netty有多种NIO实现NIO一定优于BIO么源码解读Netty怎么切换I/O模式什么是经典的三种I/O模式生活场景:当我们去饭店吃饭时:食堂排队打饭模式:排队在窗口,打好才走;点单、等待被原创 2020-07-12 21:10:56 · 224 阅读 · 0 评论 -
初识Netty:背景、现状与趋势
文章目录Netty概述Netty之Hello World不直接使用JDK NIO选择Netty的原因Netty发展史Netty概述Netty由Trustin Lee (韩国,Line公司) 2004年开发。Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & cli原创 2020-07-05 19:54:18 · 1882 阅读 · 0 评论