代理打孔 [英] Proxy Punching

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

问题描述


我正在与应用程序对等工作.我已经实现了UDP/TCP打孔(c ++),并且两个对等方可以与帮助集合服务器直接相互连接,然后可以在不需要服务器帮助的情况下传输数据.两个对等UDP/TCP打孔不起作用.任何机构都可以说出解决此问题的方法.如何通过代理获得解决方法.
谢谢,

Hi,
I am working in peer to application.I have implemented UDP/TCP hole punching(c++) and two peer can directly connect to each other with the help rendezvous server and then can transfer data without help of server.But if I use proxy in these two peer UDP/TCP hole punching doesnot work.Can any body tell way to over come this problem.How can get through the proxy.
Thanks,

推荐答案

在类似
的情况下
in a scenario like
A--->proxy --------proxy<---B
               |
               S


(S是服务器),除非使代理知道您的应用程序如何管理TCP端口(A和A). B可以向S打开插座,但是A和S不能向B打开插座(因为B和S不能向A打开).
谁在代理外部,没有内部的免费访问权限.
这就是代理的用途.

在设计此类应用程序时,应注意这一事实.
另外,请检查由于某些原因代理服务器未过滤服务器的端口/地址.


(S is the server) unless making the proxies aware about how your application manages TCP ports, both A & B can open a socket towards S, but A and S cannot open sockets to B (as B and S cannot open to A).
Who is outside a proxies doesn''t have free reachability of what is inside.
That''s what proxies are for.

You should take care of this fact, when designing this kind of apps.
Also, check that the port/address of the server isn''t filtered by the proxies for some reasons.


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

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