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

穿透防火墙 mfc界面

于 2022-02-05 发布 文件大小:3.68 MB
0 225
下载积分: 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 个回复

  • 采用socket实现的一个双方发送信息的聊天室
    采用socket编程实现的一个双方发送信息的聊天室程序-Use socket programming to send information on the two sides of a chat room program
    2023-07-14 08:15:03下载
    积分:1
  • 服务端通信序,可以进行点对点的通信连接
    服务端通信程序,可以进行点对点的通信连接-Service client communication procedures, can be point-to-point communication links
    2022-07-27 14:25:12下载
    积分:1
  • 网络的相关知识,网络序的写,Socket是连接应用序与网络驱动序的桥梁,Socket在应用序中创建,通过bind与驱动序建立关系。此后,应用序送给...
    网络的相关知识,网络程序的编写,Socket是连接应用程序与网络驱动程序的桥梁,Socket在应用程序中创建,通过bind与驱动程序建立关系。此后,应用程序送给Socket的数据,由Socket交给驱动程序向网络上发送出去。计算机从网络上收到与该Socket绑定的IP+Port相关的数据后,由驱动程序交给Socket,应用程序便可从该Socket中提取接收到的数据。网络应用程序就是这样通过socket进行数据的发送与接收的。TCP与UDP的工作原理与编写过程,如何在程序中链接库文件。一个字符界面的聊天程序。-network of the knowledge, network program, Socket is a link between the application and network driver bridges, Socket in the application process to create, Driving through bind with the procedures established relations. Since then, Socket applications presented data from the socket to the network driver to send out. Computer network received from the Socket bundled IP Port relevant data, by the driver to Socket, application procedures can Socket from the extraction of data received. Network applications through this is the socket for data transmission and reception. TCP and UDP Principle and the work of preparation, how to process the document link. Characters in a chat interface procedures.
    2022-02-07 17:35:59下载
    积分:1
  • socket
    socket编程基于c#开发,通过gprs进行通讯,异步通讯方式,具有一定的学习研究价值;适合新手了解学习
    2022-06-01 07:31:59下载
    积分:1
  • Novell网络发送数据的实现
    Novell网络发送数据的实现 -The implemention of sending data in Novell network
    2022-07-15 08:36:38下载
    积分:1
  • 序禁用和启用网卡, 序禁用和启用网卡
    程序禁用和启用网卡, 程序禁用和启用网卡-Procedures to disable and enable the network card, disable and enable the network card
    2023-05-29 12:10:03下载
    积分:1
  • Jdon版Jive论坛,非常不错的
    Jdon版Jive论坛,非常不错的-Jdon version Jive Forum, very good
    2022-10-31 17:10:03下载
    积分:1
  • 这本书指导软件专业人员通过陷阱和缺陷的发展…
    This book guides software professionals through the traps and pitfalls of developing efficient, portable, and flexible networked applications. It explores the inherent design complexities of concurrent networked applications and the tradeoffs that must be considered when working to master them.
    2023-04-18 10:35:03下载
    积分:1
  • windows 网络连接
    windows 网络连接编程-windows network programming
    2023-07-22 00:55:03下载
    积分:1
  • .使用异步socket连接,异步解析主机名; 2.支持多文件、多级目录/子目录的上传/下载; 3.文件的删除、重命名、修改属性......等等; 4.用户的修改...
    .使用异步socket连接,异步解析主机名; 2.支持多文件、多级目录/子目录的上传/下载; 3.文件的删除、重命名、修改属性......等等; 4.用户的修改密码.......等等; 5.断点上传/下载; 6.支持托放上传/下载; 7.自定义FTP命令等; 8.拨号网络(电话及ADSL-. Using asynchronous socket connections, asynchronous to resolve the host name 2. Support multi-file, multi-level directory/subdirectory of the upload/download 3. File delete, rename, modify attributes and so on ...... 4. ....... a user" s password changes, etc. 5. breakpoint upload/download 6. to support drag and drop upload/download 7. custom FTP commands, etc. 8. Dial-Up Networking (tel. and ADSL
    2022-02-01 18:06:36下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载