vb.net压缩tcp流量 [英] vb.net compress tcp traffic
问题描述
嘿,我想知道是否有可能在vb.net中以任何方式压缩或打包服务器和客户端之间的tcp数据我已经使用流测试并尝试在Google上找到答案,但我发现的所有答案都太难了对我来说,或者比我想象的那样我b $ b所以我想知道这里是否有人知道如何在服务器和客户端之间压缩tcp和解压缩数据,我很乐意欣赏它,如果有任何打屁股的希望有人
了解我的问题,是的,提前谢谢
我用Google翻译了翻译抱歉,如果它是错字
请看问题的评论。
这应该会有所帮助:
http://en.wikipedia.org/wiki/TCP_acceleration [ ^ ],
http://en.wikipedia.org/wiki/FAST_TCP [ ^ ],
http://netlab.caltech.edu/FAST/ [ ^ ]。
您可以采取不同的路径:继续使用标准TCP,压缩您在网络流中写入的数据。我看不出有任何问题。 (这可能是Mehdi Gholam在评论中的意思。)
-SA
< blockquote class =FQ>wawada问:...所以我问你是否知道一种聪明的方法来压缩图像然后通过TCP发送并解压缩图像,我想知道如何通过tcp压缩文本然后解压缩文本并读取它...
好吧,你可以在没有文件的情况下压缩流。这就是System.IO.Compression.GZipStream的工作原理: http:// msdn。 microsoft.com/en-us/library/system.io.compression.gzipstream.aspx [ ^ ]。
这是邮政编码样本: http://www.dart.com/zip-stream-code-example.aspx [ ^ ]。
您可以使用此开源库: http://dotnetzip.codeplex.com/ [ ^ ]。
< DD> -SA
hey i was wondering if it is possible to compress or pack tcp data between server and client in any way in vb.net I have tested with streams and try to find answers on Google but all the answers that I found are too difficult for me or else than I thought I
so i was wondering if anyone here knows how to compress tcp and decompress data between server and client, and I would gladly appreciate it if any spanked hope someone
understands me question and yes thanks in advance
I translated it with Google translate sorry if it's typo
Please see the comments to the question.
This should be helpful:
http://en.wikipedia.org/wiki/TCP_acceleration[^],
http://en.wikipedia.org/wiki/FAST_TCP[^],
http://netlab.caltech.edu/FAST/[^].
You can take some different route: keeping to use "standard TCP", compress the data you write in the networks stream. I cannot see any problem with that. (This is probably what Mehdi Gholam meant in his comment.)
—SA
wawada asked:…so I ask you if you know a clever way to compress images to then send over TCP and decompress the image, and I wonder how to compress text over tcp for then decompress the text and read it…
Well, you can compress a stream without having a file. This is how System.IO.Compression.GZipStream works: http://msdn.microsoft.com/en-us/library/system.io.compression.gzipstream.aspx[^].
This is the ZIP code sample: http://www.dart.com/zip-stream-code-example.aspx[^].
You can use this open-source library: http://dotnetzip.codeplex.com/[^].
—SA
这篇关于vb.net压缩tcp流量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!