![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
netty学习之路
文章平均质量分 78
one-fly
海阔凭鱼跃,天高任鸟飞
展开
-
netty服务端开发-绑定监听
上一篇文章介绍了服务端的消息处理,这篇文章则主要介绍端口监听、连接的建立和消息处理类的注册使用等,直接贴上demo代码 package com.jd.time.server; import com.jd.time.handler.TimeServerHandler; import io.netty.bootstrap.ServerBootstrap; import io.netty.chann原创 2015-04-11 11:00:53 · 9299 阅读 · 1 评论 -
netty服务端开发-I/O处理
使用netty开发服务端程序,主要包括一个服务端程序类,主要负责监听端口,建立连接;还有一个服务端数据处理类,负责处理服务端接收到的业务数据,并进行响应, 先贴上一段负责处理接收数据的demo类 package com.jd.time.handler; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; impor原创 2015-04-11 10:44:38 · 705 阅读 · 0 评论