TCP实现P2P通信

时间:2016-05-13 03:47:10
【文件属性】:
文件名称:TCP实现P2P通信
文件大小:1.2MB
文件格式:ZIP
更新时间:2016-05-13 03:47:10
TCP P2P通信 穿越NAT TCP打洞 看了前面的“TCP实现P2P通信、TCP穿越NAT的方法、TCP打洞 (谢红伟)” 代码后,将其整理到基于对话框界面上,分服务端和客户端两个。在公司服务器上测试通过。界面简结(作者:vc蓝色梦幻)
【文件预览】:
TCP实现P2P通信改进版.htm
说明.txt
01.gif
02.JPG
Exception.h
代码
----Exception.h(498B)
----HClient()
--------UIThread.h(1KB)
--------UIThreadDlg.cpp(1KB)
--------HClient.sln(903B)
--------Debug()
--------UIThread.cpp(951B)
--------HClient.rc(7KB)
--------stdafx.h(1KB)
--------HClient.h(474B)
--------ReadMe.txt(3KB)
--------HClient.suo(18KB)
--------HClientDlg.cpp(18KB)
--------res()
--------HClient.cpp(1KB)
--------stdafx.cpp(136B)
--------HClientDlg.h(1KB)
--------Resource.h(1KB)
--------UIThreadDlg.h(1KB)
--------HClient.vcproj(5KB)
--------SendMsgDlg.cpp(1KB)
--------SendMsgDlg.h(438B)
----HP2pServer()
--------HP2pServerDlg.h(860B)
--------Debug()
--------stdafx.h(1KB)
--------HP2pServer.vcproj(5KB)
--------HP2pServer.rc(5KB)
--------ReadMe.txt(3KB)
--------res()
--------stdafx.cpp(139B)
--------Resource.h(866B)
--------HP2pServer.cpp(1KB)
--------HP2pServerDlg.cpp(11KB)
--------HP2pServer.sln(909B)
--------HP2pServer.suo(9KB)
--------HP2pServer.h(461B)
----proto.h(2KB)
proto.h
01.JPG

网友评论

  • 最后TCP还是用不了
  • 这udp,连tcp和udp都不分,不过可以告诉大家,tcp的机制是无法实现打洞的,只有udp才可以,而且还给路由器类型有关
  • 这个呢,资源是不错,也能运行问题是这个事UDP的
  • 挂羊头卖狗肉,硬把UDP说成TCP的,浪费我的下载分
  • 不是TCP的啊,是UDP的,