Repository navigation
Home ZH
b23r0 edited this page Oct 12, 2026
·
6 revisions
Rust 实现的高性能 Reliable UDP 实时消息传输异步网络库;可选 blocking 功能在同一套 Tokio 传输实现上提供同步调用。
Version / 版本:1.4.0 · crates.io · source / 源码 b909c93 · 2026-10-12
| 主题 | 文档 |
|---|---|
| 快速开始 | 快速开始 |
| 同步调用与共享运行时 | 同步调用与共享运行时 |
| 公开 API 索引 | 公开 API 索引 |
| 五种交付模式 | 五种交付模式 |
| RakNet 报文和恢复机制 | RakNet 报文和恢复机制 |
| 消息生命周期与限制 | 消息生命周期与限制 |
| Bytes 与显式批量接口 | Bytes 与显式批量接口 |
| 发送策略 | 发送策略 |
| 恢复策略与尾包探测 | 恢复策略与尾包探测 |
| 全部配置参数 | 全部配置参数 |
| 高并发与 socket 配置 | 高并发与 socket 配置 |
| 错误、超时和取消 | 错误、超时和取消 |
| 拥塞与部署边界 | 拥塞与部署边界 |
| Benchmark 结果 | Benchmark 结果 |
| 性能评估方法 | 性能评估方法 |
| Benchmark 复现 | Benchmark 复现 |
| Minecraft 基岩版代理 | Minecraft 基岩版代理 |
| 排障与开发 | 排障与开发 |
| 版本变更与升级 | 版本变更与升级 |
库通过序号、ACK/NACK、重传与重排为 UDP 增加可靠交付;五种模式决定每条消息的交付语义。断线处理和业务确认仍由应用负责。
消息必须非空且以 0xfe 开头,只有 ReliableOrdered 自动分片大消息。库不提供加密、身份认证、自适应带宽拥塞控制、Sans-I/O 或 Bevy 插件。blocking 是同步适配器,不是轮询接口。部署指南说明这些边界及应用处理方式。
English · 简体中文 · GitHub · crates.io 1.4.0 · Reviewed / 核对:2026-10-12 / b909c93
- Overview
- Quick start
- Blocking calls and shared runtimes
- Public API index
- Five reliability modes
- RakNet wire format and recovery
- Message lifecycle and limits
- Bytes and explicit batching
- Send policy
- Recovery policy and tail probes
- Every configuration parameter
- Concurrency and socket tuning
- Errors, deadlines and cancellation
- Congestion and deployment boundaries
- Benchmark results
- Benchmark methodology
- Benchmark reproduction
- Minecraft Bedrock proxy
- Troubleshooting and development
- Release history and upgrading