{"id":18526465,"url":"https://github.com/rekoe/tio-protobuf","last_synced_at":"2025-08-26T08:16:31.610Z","repository":{"id":37276930,"uuid":"171120222","full_name":"Rekoe/tio-protobuf","owner":"Rekoe","description":"protobuf","archived":false,"fork":false,"pushed_at":"2022-11-16T11:39:17.000Z","size":104,"stargazers_count":12,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T05:51:44.865Z","etag":null,"topics":["netty","nutboot","nutz","protobuf","tio","tio-websocket"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rekoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-17T12:36:07.000Z","updated_at":"2024-10-23T07:32:54.000Z","dependencies_parsed_at":"2023-01-21T10:31:41.941Z","dependency_job_id":null,"html_url":"https://github.com/Rekoe/tio-protobuf","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rekoe%2Ftio-protobuf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rekoe%2Ftio-protobuf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rekoe%2Ftio-protobuf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rekoe%2Ftio-protobuf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rekoe","download_url":"https://codeload.github.com/Rekoe/tio-protobuf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248040574,"owners_count":21037892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["netty","nutboot","nutz","protobuf","tio","tio-websocket"],"created_at":"2024-11-06T17:51:29.416Z","updated_at":"2025-04-09T12:31:58.551Z","avatar_url":"https://github.com/Rekoe.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 简介\n\n本压缩包是一个maven工程, eclipse/idea均可按maven项目导入\n\nMainLauncher是入口,启动即可\n\n## 环境要求\n\n* 必须JDK8+\n* eclipse或idea等IDE开发工具,可选\n\n## 配置信息位置\n\n数据库配置信息,jetty端口等配置信息,均位于src/main/resources/application.properties\n\n## 命令下启动\n\n仅供测试用,使用mvn命令即可\n\n```\n// for windows\nset MAVEN_OPTS=\"-Dfile.encoding=UTF-8\"\nmvn compile nutzboot:run\n\n// for *uix\nexport MAVEN_OPTS=\"-Dfile.encoding=UTF-8\"\nmvn compile nutzboot:run\n```\n\n## 项目打包\n\n```\nmvn clean package nutzboot:shade\n```\n\n请注意,当前需要package + nutzboot:shade, 单独执行package或者nutzboot:shade是不行的\n\n# tio + protobuf3 最佳实践\n1. tio+protobuf3多类型传输实现\n2. 优雅的实现消息分发\n\n## 使用步骤:\n1. 先运行`protoGen.bat`生成protobuf实体类，如果是*nix平台直接把bat改成sh即可(项目中已经生成)\n2. 运行`com.onemena.game.generator.HandlerGenerator`生成对应类型`handler`类\n3. 在生成的`handler`中填写业务逻辑\n4. 运行`com.onemena.game.MainLauncher`中的主方法启动服务端\n5. 运行`com.onemena.game.client.ClientServer`中的主方法启动客户端循环发送数据\n\n\n## 源自Netty+protobuf3\n\nhttps://github.com/nonpool/typedispatchdemos","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frekoe%2Ftio-protobuf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frekoe%2Ftio-protobuf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frekoe%2Ftio-protobuf/lists"}