Netty实现简单的客户端服务端通信示例

上传者: x4609883 | 上传时间: 2021-07-27 11:53:41 | 文件大小: 78KB | 文件类型: ZIP
Netty实现简单的客户端服务端通信示例,户端发送请求给服务端,并由服务端响应客户端请求,希望对初学Netty的同学有所帮助。

文件下载

资源详情

[{"title":"( 71 个子文件 78KB ) Netty实现简单的客户端服务端通信示例","children":[{"title":"NettyDemo","children":[{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":null,"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"netty","children":[{"title":"object","children":[{"title":"Client.java <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"Client_2.java <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"ClientHandler.java <span style='color:#111;'> 1008B </span>","children":null,"spread":false},{"title":"Response.java <span style='color:#111;'> 691B </span>","children":null,"spread":false},{"title":"ServerHandler.java <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"Request.java <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"Server.java <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false}],"spread":true},{"title":"utils","children":[{"title":"JsonUtils.java <span style='color:#111;'> 4.49KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"resources","children":null,"spread":false},{"title":"java","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.m2e.core.prefs <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 478B </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"target","children":[{"title":"classes","children":[{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 111B </span>","children":null,"spread":false},{"title":"maven","children":[{"title":"com.netty","children":[{"title":"NettyDemo","children":[{"title":"pom.properties <span style='color:#111;'> 212B </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"com","children":[{"title":"netty","children":[{"title":"Server.class <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false},{"title":"StickyAndUnpacking","children":[{"title":"Server.class <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"Client$1.class <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"Client.class <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"ServerHandler.class <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"ClientHandler.class <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"Server$1.class <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false}],"spread":true},{"title":"EncoderAndDecoder","children":[{"title":"Server.class <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"Client$1.class <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"Response.class <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"Client.class <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"ServerHandler.class <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false},{"title":"ClientHandler.class <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"Server$1.class <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"Request.class <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"MarshallingCodeFactory.class <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false}],"spread":true},{"title":"Handler.class <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"object","children":[{"title":"Server.class <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"Client$1.class <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"Response.class <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"Client.class <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"ServerHandler.class <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"ClientHandler.class <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"Server$1.class <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"Request.class <span style='color:#111;'> 805B </span>","children":null,"spread":false},{"title":"Client_2.class <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"Client_2$1.class <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false}],"spread":false},{"title":"TimeHandler$1.class <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"TimeHandler.class <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"GzipUtils.class <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"JsonUtils.class <span style='color:#111;'> 7.20KB </span>","children":null,"spread":false}],"spread":false},{"title":"Server$1.class <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"HeartBeat","children":[{"title":"Server.class <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"Client$1.class <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"Client.class <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"ClienHeartBeatHandler$HeartBeatTask.class <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"RequestInfo.class <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"ClienHeartBeatHandler.class <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"MarshallingCodeCFactory.class <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"ServerHeartBeatHandler.class <span style='color:#111;'> 3.64KB </span>","children":null,"spread":false},{"title":"Server$1.class <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"HeartCheck","children":[{"title":"Server.class <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"Client$1.class <span style='color:#111;'> 891B </span>","children":null,"spread":false},{"title":"Client.class <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false},{"title":"ServerHandler.class <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"ClientHandler.class <span style='color:#111;'> 335B </span>","children":null,"spread":false},{"title":"Server$1.class <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false}],"spread":false},{"title":"communication","children":[{"title":"Server.class <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false},{"title":"Client$1.class <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"Client.class <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"ServerHandler.class <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false},{"title":"ClientHandler.class <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"Server$1.class <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"Client_2.class <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false},{"title":"Client_2$1.class <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"test-classes","children":null,"spread":false}],"spread":true},{"title":".project <span style='color:#111;'> 561B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明