联合开发网   搜索   要求与建议
                登陆    注册
排序按匹配   按投票   按下载次数   按上传日期
按分类查找All P2P编程(2) 
按平台查找All Visual Basic(2) 

[P2P编程] udp

论坛上经常有对P2P原理的讨论,但是讨论归讨论,很少有实质的东西产生(源代码)。呵呵,在这里我就用自己实现的一个源代码来说明UDP穿越NAT的原理。 首先先介绍一些基本概念: NAT(Network Address Translators),网络地址转换:网络地址转换是在IP地址日益缺乏的情况下产生的,它的主要目的就是为了能够地址重用。NAT分为两大类,基本的NAT和NAPT(Network Address/Port Translator)。 最开始NAT是运行在路由器上的一个功能模块。 最先提出的是基本的NAT,它的产生基于如下事实:一个私有网络(域)中的节点中只有很少的节点需要与外网连接(呵呵,这是在上世纪90年代中期提出的)。那么这个子网中其实只有少数的节点需要全球唯一的IP地址,其他的节点的IP地址应该是可以重用的。 因此,基本的NAT实现的功能很简单,在子网内使用一个保留的IP子网段,这些IP对外是不可见的。子网内只有少数一些IP地址可以对应到真正全球唯一的IP地址。
Forum on the principle of frequent discussion on P2P, but the discussion to the discussion, there is very little substance produced (source code). Oh, here on my own implementation of a source code to illustrate the principle of UDP through NAT. First of all, to introduce some basic concepts: NAT (Network Address Translators), Network Address Translation: NAT IP addresses are becoming more and more scarce in the circumstances, it is the main purpose of reuse in order to be able to address. NAT is divided into two categories, the basic NAT and NAPT (Network Address/Port Translator). Most are running at start NAT router on a function module. The first to propose that the basic NAT, it is the emergence of truth based on the following: a private network (domain) of nodes required only a few nodes and external network connection (Ha ha, this is up at mid-century and raised 90) . Well, this subnet in a matter of fact only a small number of nodes required of the world s only IP addresses, o (2009-03-15, Visual Basic, 292KB, 下载20次)

http://www.pudn.com/Download/item/id/674305.html

[P2P编程] p2pwangluo

从理论上,P2P的扩展性是无限的。整个体系是全分布的,不存在瓶颈。Peer To Peer(P2P即对等式)媒介提供了多种方法来获取信息、获得有用的服务并大大提高协作度,对等网不需要专门的服务器,网络中的每台计算机既是服务器又是工作站,在P2P网络中,随着用户的加入,不仅服务的需求增加了,系统整体的资源和服务能力也在同步的扩充,始终能较容易的满足用于的需要。网络中的资源和服务分散在所有结点上,信息的传输和服务的实现都直接在结点之间进行,可以无需中间环节和服务器的介入,避免了可能的瓶颈。
err (2008-03-03, Visual Basic, 15KB, 下载12次)

http://www.pudn.com/Download/item/id/409733.html
总计:2