STUNserverANDclient

所属分类:网络编程
开发工具:Visual C++
文件大小:4398KB
下载次数:263
上传日期:2007-08-13 09:59:45
上 传 者lzpjf
说明:  实现STUN协议的服务器端和客户端,是UDP穿越NAT
(Realize STUN protocol server-side and client is UDP through NAT)

文件列表:
3424324324\3424324324\Cn700.com.txt (2916, 2004-10-04)
3424324324\3424324324\sClient.exe (20480, 2000-03-27)
3424324324\3424324324\sServer.exe (20480, 2000-03-27)
3424324324\3424324324\STUN.JPG (38799, 2000-03-17)
3424324324\3424324324\STUN.VSD (146944, 2000-03-14)
3424324324\3424324324\stunc\startClient\res\startClient.ico (1078, 2000-03-13)
3424324324\3424324324\stunc\startClient\res\startClient.rc2 (403, 2000-03-13)
3424324324\3424324324\stunc\startClient\resource.h (827, 2000-03-13)
3424324324\3424324324\stunc\startClient\startClient.aps (21532, 2007-07-27)
3424324324\3424324324\stunc\startClient\startClient.clw (1387, 2007-07-27)
3424324324\3424324324\stunc\startClient\startClient.cpp (2133, 2000-03-13)
3424324324\3424324324\stunc\startClient\startClient.dsp (4249, 2000-03-13)
3424324324\3424324324\stunc\startClient\startClient.dsw (547, 2000-03-13)
3424324324\3424324324\stunc\startClient\startClient.h (1379, 2000-03-13)
3424324324\3424324324\stunc\startClient\startClient.ncb (99328, 2007-07-27)
3424324324\3424324324\stunc\startClient\startClient.plg (256, 2007-07-27)
3424324324\3424324324\stunc\startClient\startClient.rc (5716, 2000-03-23)
3424324324\3424324324\stunc\startClient\startClientDlg.cpp (5839, 2000-03-27)
3424324324\3424324324\stunc\startClient\startClientDlg.h (1751, 2000-03-13)
3424324324\3424324324\stunc\startClient\StdAfx.cpp (213, 2000-03-13)
3424324324\3424324324\stunc\startClient\StdAfx.h (1054, 2000-03-13)
3424324324\3424324324\stunc\startClient\startClient.opt (49664, 2007-07-27)
3424324324\3424324324\stunc\stuncDll\stun.cxx (26730, 2000-03-13)
3424324324\3424324324\stunc\stuncDll\stun.h (3189, 2000-03-13)
3424324324\3424324324\stunc\stuncDll\stunc.cxx (2020, 2000-03-27)
3424324324\3424324324\stunc\stuncDll\stuncDll.dsp (4588, 2000-03-14)
3424324324\3424324324\stunc\stuncDll\stuncDll.dsw (541, 2000-03-13)
3424324324\3424324324\stunc\stuncDll\stuncDll.ncb (91136, 2000-03-27)
3424324324\3424324324\stunc\stuncDll\stuncDll.opt (49664, 2000-03-27)
3424324324\3424324324\stunc\stuncDll\stuncDll.plg (3984, 2000-03-23)
3424324324\3424324324\stunc\stuncDll\udp.cxx (8130, 2002-03-05)
3424324324\3424324324\stunc\stuncDll\udp.h (4132, 2002-03-05)
3424324324\3424324324\stunc\stuncDll\util.cxx (2574, 2002-03-05)
3424324324\3424324324\stunc\stuncDll\util.h (2122, 2002-03-05)
3424324324\3424324324\stunc.dll (57344, 2000-03-23)
3424324324\3424324324\stund\startServer\res\startdll.ico (1078, 2000-03-13)
3424324324\3424324324\stund\startServer\res\startdll.rc2 (400, 2000-03-13)
... ...

STUN Server 这个STUN (Simple Traversal UDP NATs)是用来测试网关NAT(Network Address Translation) 类型的服务器和客户端。可以用来对,网络类型测试,P2P网络分析,网络故障排除,穿越网关可行性 测验,等多种应用。其工作原理如图Stun.jpg所示。 我已将这个STUN Server做成DLL,其应用方式有示例说明。这是一个Open Source程序,你可以 将DLL任意使用,任意修改其源代码。改好后能给你一份吗:P 在这里说明其5种Nat类型: 1.Full Cone: A full cone NAT is one where all requests from the same internal IP address and port are mapped to the same external IP address and port. Furthermore, any external host can send a packet to the internal host, by sending a packet to the mapped external address. 2.Restricted Cone: A restricted cone NAT is one where all requests from the same internal IP address and port are mapped to the same external IP address and port. Unlike a full cone NAT, an external host (with IP address X) can send a packet to the internal host only if the internal host had previously sent a packet to IP address X. 3.Port Restricted Cone: A port restricted cone NAT is like a restricted cone NAT, but the restriction includes port numbers. Specifically, an external host can send a packet, with source IP address X and source port P, to the internal host only if the internal host had previously sent a packet to IP address X and port P. 4.Symmetric Nat: 5.Symmetric Firewall : A symmetric NAT is one where all requests from the same internal IP address and port, to a specific destination IP address and port, are mapped to the same external IP address and port. If the same host sends a packet with the same source port, but to a different destination, a different mapping is used. Furthermore, only the external host that receives a packet can send a UDP packet back to the internal host. 出处: http://www.ietf.org/internet-drafts/draft-simu-midcom-stun-aware-nat-00.txt http://www.jdrosen.net/papers/draft-rosenberg-midcom-stun-00.txt    Copyright (c) 2003 ybeetle   作者 陈华尧   主页 http://hp.xilu.com/~maomao/AI/   E-mail: 6b6@21cn.com

近期下载者

相关文件


收藏者