随笔分类 - netty
netty in action
摘要:NioEventLoopGroup group1= new NioEventLoopGroup(); NioEventLoopGroup group2 = new NioEventLoopGroup(); try{ ServerBootstrap boot = new ServerBootstrap
阅读全文
摘要:记录下这种使用。 SingleThreadEventExecutor doStartThread( .... SingleThreadEventExecutor.this.run(); .... ) SIngleThreadEventExecutor.this 引用指向的是NIoEventLoop。
阅读全文
摘要:public class PlainNio2EchoServer{ public void serve(int port)throws IOExcetpion{ System.out.println("listening for connection on port "+port); final A
阅读全文
摘要:笔记于 书籍《netty in action 》第五版 书籍中会使用到的知识点: 1,关于nio 的知识; 2,关于多线程的知识及ExecutorService 方面的知识; 3,关于网络编程的知识。 4,关于网络协议方面的知识。 5,关于加密TLS、SSL方面的知识。 目前使用的4中IO模型,同步
阅读全文