文件名称:liubingP2P

  • 所属分类:
  • P2P编程
  • 资源属性:
  • [Windows] [Visual C] [源码]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 31kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 刘*
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

用UDP实现了p2p是的穿透,P2PServer运行在一个拥有公网IP的计算机上,P2PClient运行在两个不同的NAT后(注意,如果两个客户端运行在一个NAT后,本程序很可能不能运行正常,这取决于你的NAT是否支持loopback translation,详见http://midcom-p2p.sourceforge.net/draft-ford-midcom-p2p-01.txt,当然,此问题可以通过双方先尝试连接对方的内网IP来解决,但是这个代码只是为了验证原理,并没有处理这些问题),后登录的计算机可以获得先登录计算机的用户名,后登录的计算机通过send username message的格式来发送消息。如果发送成功,说明你已取得了直接与对方连接的成功。-achieved using UDP p2p is the piercing, P2PServer operation in a public IP with the computer, P2PClient running in two different NAT after (Note If two clients running on a NAT, the procedure may not be operating normally, It depends on whether you support the loopback NAT translation, see http :// midcom-p2p.sourceforge.net/draft-ford- midcom- p2p- 01.txt, of course, this problem can be made by the two sides try to connect with each other to resolve the IP network, but the code is to verify principle, not dealing with these issues), after the computer can log logged in a computer user name, after logged by the computer username send the message format to send information. If the success of this show that you have made a direct link with each other's success.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

P2P

...\Exception.h

...\P2PClient

...\.........\P2PClient.cpp

...\.........\P2PClient.dsp

...\.........\P2PClient.dsw

...\.........\P2PClient.ncb

...\.........\P2PClient.opt

...\.........\P2PClient.plg

...\.........\P2PClient.sln

...\.........\P2PClient.vcproj

...\P2PServer

...\.........\P2PServer.cpp

...\.........\P2PServer.dsp

...\.........\P2PServer.dsw

...\.........\P2PServer.ncb

...\.........\P2PServer.opt

...\.........\P2PServer.plg

...\.........\P2PServer.sln

...\.........\P2PServer.vcproj

...\proto.h

...\UDP穿越NAT.TXT

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org