udp打孔后发送文件 [英] Send files after udp hole punching

查看:40
本文介绍了udp打孔后发送文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 NAT 后面有 2 台计算机.

I have 2 computers behind NAT.

为了在它们之间建立连接,我使用了 UDP 打孔协议.

To make a connection between them I use an UDP hole punching protocol.

它有效.

现在我想通过这个隧道发送文件.我想我必须在这两台计算机之间建立一个 TCP 隧道.

Now I want to send files by this tunnel. I guess I must have a TCP tunnel between those 2 computers.

两个防火墙都拒绝所有 TCP 流量.

Both firewall DENY all TCP trafic.

有可能吗?

如果没有,还有其他解决方案吗?Skype 如何通过此 UDP 隧道发送文件?

If not, is there any other solution ? How does Skype sends files by this UDP Tunnel ?

推荐答案

文件被打孔后,您可以使用 UDT 协议进行文件传输.UDT 建立在 UDP 之上.具有TCP的可靠性和UDP的快速性.

You can use UDT protocol for file transfer after it gets hole punched. UDT is made on top of UDP. It has the reliability of TCP and fastness of UDP.

UDT 有一个开源实现.

UDT has an open source implementation.

http://udt.sourceforge.net

这篇关于udp打孔后发送文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆