Netty
xMustang
知识点,串成线,织成网
展开
-
1. Netty 入门 1
1. 使用示例 public class EchoServer { private final int port; public EchoServer(int port) { this.port = port; } public void start() throws InterruptedException { final EchoServerHandler serverHandler = new EchoServerHandler();原创 2022-05-04 14:32:37 · 85 阅读 · 0 评论 -
2. Netty 入门 2
1. Netty 核心组件 EventLoop(Group) Channel ChannelHandler ChannelPipeline ChannelFuture Channel、EventLoop(Group) 、ChannelFuture、ChannelHandler、ChannelPipeline 再理解: Channel:相当于 Socket ChannelFuture:异步通知 EventLoop:控制、多线程处理、并发 ChannelHandler:充当了所有处理入站和出站数据的应用程序逻原创 2022-05-04 13:54:10 · 496 阅读 · 0 评论