liubingP2P

所属分类:P2P编程
开发工具:Visual C++
文件大小:31KB
下载次数:480
上传日期:2006-04-16 09:16:38
上 传 者liubing2006
说明:  用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 (0, 2006-04-16)
P2P\Exception.h (468, 2006-04-15)
P2P\P2PClient (0, 2006-04-16)
P2P\P2PClient\P2PClient.cpp (9892, 2006-04-15)
P2P\P2PClient\P2PClient.dsp (4324, 2004-05-21)
P2P\P2PClient\P2PClient.dsw (541, 2004-05-21)
P2P\P2PClient\P2PClient.ncb (33792, 2006-04-15)
P2P\P2PClient\P2PClient.opt (53760, 2006-04-15)
P2P\P2PClient\P2PClient.plg (1489, 2006-04-15)
P2P\P2PClient\P2PClient.sln (907, 2004-05-22)
P2P\P2PClient\P2PClient.suo (8192, 2004-05-22)
P2P\P2PClient\P2PClient.vcproj (4361, 2004-05-22)
P2P\P2PServer (0, 2006-04-16)
P2P\P2PServer\P2PServer.cpp (5346, 2006-04-15)
P2P\P2PServer\P2PServer.dsp (4320, 2004-05-21)
P2P\P2PServer\P2PServer.dsw (541, 2004-05-21)
P2P\P2PServer\P2PServer.ncb (33792, 2006-04-15)
P2P\P2PServer\P2PServer.opt (53760, 2006-04-15)
P2P\P2PServer\P2PServer.plg (1325, 2006-04-15)
P2P\P2PServer\P2PServer.sln (907, 2004-05-22)
P2P\P2PServer\P2PServer.suo (8192, 2004-05-22)
P2P\P2PServer\P2PServer.vcproj (4305, 2004-05-22)
P2P\proto.h (1694, 2006-04-15)
P2P\UDP穿越NAT.TXT (8733, 2004-05-22)

近期下载者

相关文件


收藏者