实例介绍
文件传输工具,在线文件传输使用P2P穿透打洞,离线文件传输使用HTTP,全套源码
【实例截图】
【核心代码】
4744302542947313326.rar
└── P2P
├── CP2P
│ ├── CP2P
│ │ ├── CP2P.APS
│ │ ├── CP2P.cpp
│ │ ├── CP2P.h
│ │ ├── cp2pProtocol.h
│ │ ├── CP2P.rc
│ │ ├── CP2P.vcproj
│ │ ├── CP2P.vcxproj
│ │ ├── CP2P.vcxproj.filters
│ │ ├── CP2P.vcxproj.user
│ │ ├── ExternalDefine.cpp
│ │ ├── ExternalDefine.h
│ │ ├── fifoqueue.cpp
│ │ ├── FifoQueue.h
│ │ ├── IPHlpApi.Lib
│ │ ├── MQInfo.txt
│ │ ├── mqProtocol.cpp
│ │ ├── mqProtocol.h
│ │ ├── OffLinelayer.cpp
│ │ ├── OffLinelayer.h
│ │ ├── ReadMe.txt
│ │ ├── resource.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ ├── targetver.h
│ │ ├── UDPLayer.cpp
│ │ ├── UDPLayer.h
│ │ ├── udt.h
│ │ └── udt.lib
│ ├── CP2P.sln
│ ├── CP2P.suo
│ ├── CP2P.v11.suo
│ ├── CP2P.v12.suo
│ └── UpgradeLog.XML
├── Debug
├── demo
│ ├── FileTransDlg.exe
│ ├── HTTPServer_Config.ini
│ ├── HTTPServer.exe
│ ├── P2P.dll
│ ├── P2P.lib
│ ├── Test
│ │ ├── CP2P.h
│ │ ├── FileTrans.cpp
│ │ ├── FileTransDlg.aps
│ │ ├── FileTransDlg.cpp
│ │ ├── FileTransDlgDlg.cpp
│ │ ├── FileTransDlgDlg.h
│ │ ├── FileTransDlg.h
│ │ ├── FileTransDlg.rc
│ │ ├── FileTransDlg.sdf
│ │ ├── FileTransDlg.sln
│ │ ├── FileTransDlg.suo
│ │ ├── FileTransDlg.vcxproj
│ │ ├── FileTransDlg.vcxproj.filters
│ │ ├── FileTransDlg.vcxproj.user
│ │ ├── FileTrans.h
│ │ ├── libglog.dll
│ │ ├── libglog.lib
│ │ ├── ReadMe.txt
│ │ ├── res
│ │ │ ├── FileTransDlg.ico
│ │ │ └── FileTransDlg.rc2
│ │ ├── resource.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ ├── targetver.h
│ │ └── UpgradeLog.XML
│ ├── UDPServer_Config.ini
│ ├── UDPServer.exe
│ ├── udt.dll
│ ├── UDTServer_Config.ini
│ ├── UDTServer.exe
│ ├── vcredist_x86_vs2010.exe
│ └── 使用说明.docx
├── Release
├── Server
│ ├── HTTPServer
│ │ ├── HTTPServer
│ │ │ ├── connection.cpp
│ │ │ ├── connection.hpp
│ │ │ ├── FileRecv.cpp
│ │ │ ├── FileRecv.h
│ │ │ ├── header.hpp
│ │ │ ├── HTTPServer.cpp
│ │ │ ├── HTTPServer.vcxproj
│ │ │ ├── HTTPServer.vcxproj.filters
│ │ │ ├── HTTPServer.vcxproj.user
│ │ │ ├── io_service_pool.cpp
│ │ │ ├── io_service_pool.hpp
│ │ │ ├── mime_types.cpp
│ │ │ ├── mime_types.hpp
│ │ │ ├── ReadMe.txt
│ │ │ ├── reply.cpp
│ │ │ ├── reply.hpp
│ │ │ ├── request_handler.cpp
│ │ │ ├── request_handler.hpp
│ │ │ ├── request.hpp
│ │ │ ├── request_parser.cpp
│ │ │ ├── request_parser.hpp
│ │ │ ├── server.cpp
│ │ │ ├── server.hpp
│ │ │ ├── stdafx.cpp
│ │ │ ├── stdafx.h
│ │ │ └── targetver.h
│ │ ├── HTTPServer.sln
│ │ └── HTTPServer.suo
│ ├── json
│ │ ├── autolink.h
│ │ ├── config.h
│ │ ├── features.h
│ │ ├── forwards.h
│ │ ├── json.h
│ │ ├── json_vc71_libmDd.lib
│ │ ├── json_vc71_libmt.lib
│ │ ├── reader.h
│ │ ├── value.h
│ │ └── writer.h
│ ├── UDPServer
│ │ ├── UDPServer
│ │ │ ├── ComFile.cpp
│ │ │ ├── ComFile.h
│ │ │ ├── mqProtocol.cpp
│ │ │ ├── mqprotocol.h
│ │ │ ├── ReadMe.txt
│ │ │ ├── stdafx.cpp
│ │ │ ├── stdafx.h
│ │ │ ├── targetver.h
│ │ │ ├── UDPServer.cpp
│ │ │ ├── UDPServer.vcxproj
│ │ │ ├── UDPServer.vcxproj.filters
│ │ │ └── UDPServer.vcxproj.user
│ │ ├── UDPServer.sln
│ │ └── UDPServer.suo
│ └── UDTServer
│ ├── UDTServer
│ │ ├── mqProtocol.cpp
│ │ ├── mqprotocol.h
│ │ ├── ReadMe.txt
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ ├── targetver.h
│ │ ├── udt.h
│ │ ├── udt.lib
│ │ ├── UDTServer.cpp
│ │ ├── UDTServer.vcxproj
│ │ ├── UDTServer.vcxproj.filters
│ │ └── UDTServer.vcxproj.user
│ ├── UDTServer.sln
│ └── UDTServer.suo
├── Test
│ ├── CP2P.h
│ ├── FileTrans.cpp
│ ├── FileTransDlg.aps
│ ├── FileTransDlg.cpp
│ ├── FileTransDlgDlg.cpp
│ ├── FileTransDlgDlg.h
│ ├── FileTransDlg.h
│ ├── FileTransDlg.rc
│ ├── FileTransDlg.sdf
│ ├── FileTransDlg.sln
│ ├── FileTransDlg.suo
│ ├── FileTransDlg.vcxproj
│ ├── FileTransDlg.vcxproj.filters
│ ├── FileTransDlg.vcxproj.user
│ ├── FileTrans.h
│ ├── libglog.dll
│ ├── libglog.lib
│ ├── ReadMe.txt
│ ├── res
│ │ ├── FileTransDlg.ico
│ │ └── FileTransDlg.rc2
│ ├── resource.h
│ ├── stdafx.cpp
│ ├── stdafx.h
│ ├── targetver.h
│ └── UpgradeLog.XML
├── udt4
│ ├── app
│ │ ├── appclient.cpp
│ │ ├── appserver.cpp
│ │ ├── cc.h
│ │ ├── Makefile
│ │ ├── recvfile.cpp
│ │ ├── ResolveAssemblyReference.cache
│ │ ├── sendfile.cpp
│ │ ├── test.cpp
│ │ └── test_util.h
│ ├── doc
│ │ ├── doc
│ │ │ ├── accept.htm
│ │ │ ├── bind.htm
│ │ │ ├── ccc.htm
│ │ │ ├── cleanup.htm
│ │ │ ├── close.htm
│ │ │ ├── connect.htm
│ │ │ ├── copy.htm
│ │ │ ├── ecode.htm
│ │ │ ├── epoll.htm
│ │ │ ├── error.htm
│ │ │ ├── footer.htm
│ │ │ ├── function.htm
│ │ │ ├── header.htm
│ │ │ ├── intro.htm
│ │ │ ├── listen.htm
│ │ │ ├── make.htm
│ │ │ ├── opt.htm
│ │ │ ├── peername.htm
│ │ │ ├── recvfile.htm
│ │ │ ├── recv.htm
│ │ │ ├── recvmsg.htm
│ │ │ ├── reference.htm
│ │ │ ├── selectex.htm
│ │ │ ├── select.htm
│ │ │ ├── sendfile.htm
│ │ │ ├── send.htm
│ │ │ ├── sendmsg.htm
│ │ │ ├── socket.htm
│ │ │ ├── sockname.htm
│ │ │ ├── startup.htm
│ │ │ ├── structure.htm
│ │ │ ├── t-cc.htm
│ │ │ ├── t-config.htm
│ │ │ ├── t-data.htm
│ │ │ ├── t-error.htm
│ │ │ ├── t-file.htm
│ │ │ ├── t-firewall.htm
│ │ │ ├── t-hello.htm
│ │ │ ├── t-intro.htm
│ │ │ ├── t-msg.htm
│ │ │ ├── trace.htm
│ │ │ ├── treeview.css
│ │ │ ├── t-udt3.htm
│ │ │ ├── tutorial.htm
│ │ │ └── udtdoc.css
│ │ ├── hlp
│ │ │ ├── ix_book.gif
│ │ │ ├── ix_down.gif
│ │ │ ├── ix_end.gif
│ │ │ ├── ix_endm.gif
│ │ │ ├── ix_endp.gif
│ │ │ ├── ix_leaf.gif
│ │ │ ├── ix_line.gif
│ │ │ ├── ix_link.gif
│ │ │ ├── ix_list.gif
│ │ │ ├── ix_listm.gif
│ │ │ ├── ix_listp.gif
│ │ │ ├── ix_open.gif
│ │ │ ├── ix_space.gif
│ │ │ └── ix_up.gif
│ │ ├── index.htm
│ │ └── main.htm
│ ├── draft-gg-udt-xx.txt
│ ├── LICENSE.txt
│ ├── Makefile
│ ├── README.txt
│ ├── RELEASE_NOTES.txt
│ ├── src
│ │ ├── api.cpp
│ │ ├── api.h
│ │ ├── buffer.cpp
│ │ ├── buffer.h
│ │ ├── cache.cpp
│ │ ├── cache.h
│ │ ├── ccc.cpp
│ │ ├── ccc.h
│ │ ├── channel.cpp
│ │ ├── channel.h
│ │ ├── common.cpp
│ │ ├── common.h
│ │ ├── core.cpp
│ │ ├── core.h
│ │ ├── epoll.cpp
│ │ ├── epoll.h
│ │ ├── list.cpp
│ │ ├── list.h
│ │ ├── Makefile
│ │ ├── md5.cpp
│ │ ├── md5.h
│ │ ├── packet.cpp
│ │ ├── packet.h
│ │ ├── queue.cpp
│ │ ├── queue.h
│ │ ├── udt.h
│ │ ├── window.cpp
│ │ └── window.h
│ └── win
│ ├── appclient.vcproj
│ ├── appclient.vcxproj
│ ├── appclient.vcxproj.filters
│ ├── appclient.vcxproj.user
│ ├── appserver.vcproj
│ ├── appserver.vcxproj
│ ├── appserver.vcxproj.filters
│ ├── appserver.vcxproj.user
│ ├── recvfile.vcproj
│ ├── recvfile.vcxproj
│ ├── recvfile.vcxproj.filters
│ ├── recvfile.vcxproj.user
│ ├── sendfile.vcproj
│ ├── sendfile.vcxproj
│ ├── sendfile.vcxproj.filters
│ ├── sendfile.vcxproj.user
│ ├── test.vcproj
│ ├── test.vcxproj
│ ├── test.vcxproj.filters
│ ├── test.vcxproj.user
│ ├── udt.sln
│ ├── udt.suo
│ ├── udt.vcproj
│ ├── udt.vcxproj
│ ├── udt.vcxproj.filters
│ ├── udt.vcxproj.user
│ └── UpgradeLog.XML
└── 源码说明.docx
25 directories, 292 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论