netty自定义协议

上传者: roy2011a | 上传时间: 2021-08-16 15:26:51 | 文件大小: 26KB | 文件类型: ZIP
netty实现自定义协议通信,形如: /** * socketHeader定义 40 + 4+ 100 +4 * 序列号 40bytes 不足前面补0 * 来源 4bytes * 指令 8bytes 不足前面补0 形如0001, 0000:心跳 * 长度 4bytes */ 心跳连接 运行 服务端:Bootstrap.java 客户端:SocketClient.java

文件下载

资源详情

[{"title":"( 24 个子文件 26KB ) netty自定义协议","children":[{"title":"daily_test-master","children":[{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"Maintest.java <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"messenger-socket-config.properties <span style='color:#111;'> 53B </span>","children":null,"spread":false},{"title":"spring-socket-service.xml <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"logback.xml <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"roy","children":[{"title":"demo","children":[{"title":"Maintest.java <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"OutClassA.java <span style='color:#111;'> 902B </span>","children":null,"spread":false},{"title":"ObjectId.java <span style='color:#111;'> 19.72KB </span>","children":null,"spread":false}],"spread":true},{"title":"netty","children":[{"title":"MessageConvertUtil.java <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"ApplicationUtil.java <span style='color:#111;'> 767B </span>","children":null,"spread":false},{"title":"client","children":[{"title":"SocketClient.java <span style='color:#111;'> 4.04KB </span>","children":null,"spread":false},{"title":"handler","children":[{"title":"UploadPosReqHandler.java <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Bootstrap.java <span style='color:#111;'> 962B </span>","children":null,"spread":false},{"title":"protocol","children":[{"title":"codec","children":[{"title":"SocketMessageDecoder.java <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"SocketMessageEncoder.java <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false}],"spread":false},{"title":"model","children":[{"title":"SocketConstant.java <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"SocketMessage.java <span style='color:#111;'> 630B </span>","children":null,"spread":false},{"title":"CommonMessage.java <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"SocketHeader.java <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"server","children":[{"title":"RouterManager.java <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"SocketServer.java <span style='color:#111;'> 3.45KB </span>","children":null,"spread":false},{"title":"SocketService.java <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"handler","children":[{"title":"UploadRespHandler.java <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 79B </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 7.16KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • wggfxn :
    少一个class com.roy.netty.server.handler.MonitoringHandler
    2017-10-16

免责申明

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