0

Is there a way to introduce artificial errors in a Protobuf stream from server to client running on the same PC? In this case, the data in question is a camera stream that should be corrupted by a lossy channel. Alternatively is it possible to have a streaming wrapper around the Protobuf object?

4

1 回答 1

2

什么事拦住你了?它只是二进制数据,你可以在你自己的代码中做任何你想做的事情。

然而,即使是轻微损坏的 protobuf 流也不太可能被解码,因为解析器在第一个错误时中止并且格式不是自同步的。

于 2018-01-26T06:12:38.897 回答