登录
首页 » Windows Socket编程 » 穿透防火墙 mfc界面

穿透防火墙 mfc界面

于 2022-02-05 发布 文件大小:3.68 MB
0 250
下载积分: 2 下载次数: 1

代码说明:

要在相同的网络终端上绑定到不同的套接字上,所以必须为这些套接字设置SO_REUSEADDR属性(即允许重用),否则侦听会失败。 4、S的【协助打洞】连接收到A的申请后通过【主连接】通知B,并将A经过NAT-A转换后的公网IP地址和端口等信息告诉B。 5、B收到S的连接通知后首先与S的【协助打洞】端口连接,随便发送一些数据后立即断开,这样做的目的是让S能知道B经过NAT-B转换后的公网IP和端口号。 6、B尝试与A的经过NAT-A转换后的公网IP地址和端口进行connect,根据不同的路由器会有不同的结果,有些路由器在这个操作就能建立连接,大多数路由器对于不请自到的SYN请求包直接丢弃而导致connect失败,但NAT-A会纪录此次连接的源地址和端口号,为接下来真正的连接做好了准备,这就是所谓的打洞,即B向A打了一个洞,下次A就能直接连接到B刚才使用的端口号了

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • CAsyncSocketEx,一个很好用的CAsyncSocket扩展类
    CAsyncSocketEx,一个很好用的CAsyncSocket扩展类-CAsyncSocketEx, a very easy to use CAsyncSocket expansion class
    2022-04-16 09:36:11下载
    积分:1
  • 查找IPX的网络地址
    查找IPX的网络地址 -Searching the network address of IPX
    2022-04-27 08:01:45下载
    积分:1
  • 一个非常的VC++图形界面的网络通信
    一个非常的VC++图形界面的网络通信-A very VC++ Graphical interface of the network communication
    2022-05-24 07:11:59下载
    积分:1
  • 简单的网络嗅探器代码 snifer
    简单的网络嗅探器代码 snifer-simple network sniffer code snifer
    2022-04-22 12:34:33下载
    积分:1
  • 以最高的安全网络_原英文版指南。拉链
    网络最高安全指南_英文原版.zip -Guide to the highest safety network _ the original English edition. Zip
    2022-10-08 11:40:03下载
    积分:1
  • MFC开发的聊天室,有server和client 支持多人聊天 适合MFC开发者学习和使用...
    MFC开发的聊天室,有server和client 支持多人聊天 适合MFC开发者学习和使用- a chat room developed in mfc support multi_person chating
    2023-05-08 18:30:03下载
    积分:1
  • This document is for the use of network programming, which there are many exampl...
    本文件是供网络编程使用,里面还有许多实例。供初学者使用-This document is for the use of network programming, which there are many examples. For beginners to use
    2023-08-14 03:15:03下载
    积分:1
  • http通讯协议,实现可以实现文件的上传与下载
    http通讯协议,实现可以实现文件的上传与下载-http communication protocol, can realize the upload and download files
    2023-07-20 18:05:02下载
    积分:1
  • 一个通过邮件槽来进行通信的例子
    一个通过邮件槽来进行通信的例子-One through the mail slot to communicate examples of
    2022-07-17 22:55:36下载
    积分:1
  • an all static pages generated content, the freedom to customize the extension, t...
    1、全静态生成的内容页,扩展名自由定制,自由选择! 2、后台无限管理等级,自由定制,权限自由分配,让你体验真正的多用户管理! 3、无限分类! 4、超自由的的模版设计,内置标签库,让你完全自由的设计网站页面。 5、优秀的网站上传附件管理模块,可以让你的网站最大程度的减少垃圾文件。 6、自带可视化 HTML 编辑器,就像在Word里编辑文章一样。 7、索引页自动分页,成静态文件保存。 8、静态页面多种生成方式,可最大程度的减少页面生成的耗用时间。 9、首页自动生成,自由修改。 10、共享模块采用JS调用,一次编辑,处处使用,同步更新。(可选) access数据库全面优化,修复v1.0 bug N个-an all static pages generated content, the freedom to customize the extension, the freedom of choice! 2, background unlimited management hierarchy, free customization, free distribution of authority and let you experience a true multi-user management! 3, unlimited classification! 4, the ultra-free design templates, built-in labels, so as you complete freedom of design website pages. 5, excellent website upload Annex management module, allows you to the website of the largest reductions in the garbage documents. 6, onboard visual HTML editor, as in Word edit the same article. 7, index page automatic paging, static documents into preservation. 8, static pages generated a variety of ways, the
    2022-08-16 02:17:26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载