我想使用quic协议发送我自己的数据(比如说视频)。我已经做了以下设置,
1-下载并编译此https://github.com/google/proto-quic
我也树立了玩具的榜样。https://www.chromium.org/quic/playing-with-quic
问题:我只能发送这个www.example.com页面,如何在这个设置中通过quic发送我自己的数据。

最佳答案

我建议您使用服务器端的Caddy项目。
另一种选择是GoQuic
两个服务器都应该配置为通过Quic(也可能包含视频)提供您自己的网页。只有在连接安全的情况下,QUIC才有效,因此应该生成有效域的证书。在示例here中,为域www.example.org生成证书。如果要为https://localhost生成有效证书,则必须相应地更新生成证书的脚本。
在客户端使用最新版本的google chrome。从命令行运行chrome,如下所示:

    google-chrome \
  --user-data-dir=/tmp/chrome-profile \
  --no-proxy-server \
  --enable-quic \
  --origin-to-force-quic-on=localhost:443 \
  --host-resolver-rules='MAP localhost.org:443' \
  https://localhost

09-10 05:27