# play-common-examples **Repository Path**: binave/play-common-examples ## Basic Information - **Project Name**: play-common-examples - **Description**: Demo Module for simple-module-matcher Launcher - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-11 - **Last Updated**: 2024-02-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: Java, Module, demo, Java8 ## README # play-common-examples play-common 项目的示例 使用 protobuf 在 TCP 之上进行通信 数据包格式: |位置|类型|说明 |---|---|--- |第一段|int|指令数据长度 |第二段|int|指令号 id |第三段|protobuf (byte[])|指令数据 指令名称格式: ``` [node]_[actions_name]_[id] e.g. C_LoginAccount_10004 ``` |id|说明 |---|--- |node|C:由客户端发起,S:由服务端下发 |actions_name|操作名称,与 proto 文件对应 |id|指令号,纯数字