创建压缩隧道

发布于 2024-11-17 18:11:19 字数 124 浏览 6 评论 0原文

我正在尝试压缩端口 6999 上的所有流量并将其通过管道传输到端口 7000。我正在考虑为此创建一条隧道。我想使用英特尔的性能原始压缩库而不是 gzip 等。

任何想法或想法都非常感激。

预先非常感谢,

I'm trying to compress all traffic on port 6999 and pipe it out onto port 7000. I was thinking of creating a tunnel for this. I would like to use Intel's performance primitive compression library rather than gzip et al.

Any thoughts or ideas greatly appreciated.

Many thanks in advance,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不奢求什么 2024-11-24 18:11:19
$ echo 'hello world' > a
$ nc -l 6999 | gzip | nc -l 7000 &
[1] 3004
$ nc localhost 6999 < a
$ nc localhost 7000 > b
[1]+  Done                    nc -l 6999 | gzip | nc -l 7000
$ gzip -d < b > c
$ md5sum a b c
6f5902ac237024bdd0c176cb93063dc4  a
74e8a26018c51612ce9257cff9f75c95  b
6f5902ac237024bdd0c176cb93063dc4  c
$ echo 'hello world' > a
$ nc -l 6999 | gzip | nc -l 7000 &
[1] 3004
$ nc localhost 6999 < a
$ nc localhost 7000 > b
[1]+  Done                    nc -l 6999 | gzip | nc -l 7000
$ gzip -d < b > c
$ md5sum a b c
6f5902ac237024bdd0c176cb93063dc4  a
74e8a26018c51612ce9257cff9f75c95  b
6f5902ac237024bdd0c176cb93063dc4  c
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文