Files
2026-02-10 18:20:39 +08:00

19 lines
472 B
Protocol Buffer
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
syntax = "proto3";
package protocol.fec;
message FecPacket {
uint64 group_id = 1; // FEC 组号(按目标IP分组)
uint32 packet_index = 2; // 包在组内的序号(0-based
bytes payload = 3;
optional ParityData parity_data = 4;
}
// 冗余包(携带FEC恢复所需的元数据)
message ParityData {
uint32 data_shards = 1; // 原始包数量
uint32 parity_shards = 2; // 冗余包数量
}