然而,如果交互过程对性能要求很高,那么可以考虑使用二进制协议(binary protocol)。除非你能肯定自己真的需要用它,否则还是用文本协议(text protocol)容易些,看一下当前因特网上的各种协议就明白了。
基于1138个网页-相关网页
我们只使用二进制协议,因为它们更加有效。
We use only binary protocols because they are the most efficient.
作为开发人员,我们不必担心移动-到-中继二进制协议的确切格式和中继对等点的确切实现。
As developers, we do not need to worry about the exact format of the mobile-to-relay binary protocols and the exact implementation of relay peers.
在清单3中,servlet直接打开到客户端的流并使用生成的代码编写到流的二进制协议buffers数据。
In Listing 3, the servlet opens up a stream directly to the client and USES the generated code to write the binary protocol buffers data to the stream.
应用推荐