一个使用C++的HPSocket完整的demo,Tcp/Udp协议可转换

上传者: m0_47564374 | 上传时间: 2021-04-16 09:35:44 | 文件大小: 276KB | 文件类型: ZIP
HpSocket的demo,完整可运行,去除多余函数,只需将ClientDlg.h和ServerDlg.h中的Tcp改为Udp便可轻松改变协议

文件下载

资源详情

[{"title":"( 84 个子文件 276KB ) 一个使用C++的HPSocket完整的demo,Tcp/Udp协议可转换","children":[{"title":"HPSocket_demo-9819a6ac3fe452a27d6f958e63650b3a03d2446c","children":[{"title":"Client","children":[{"title":"stdafx.cpp <span style='color:#111;'> 200B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Client.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false},{"title":"Client.rc2 <span style='color:#111;'> 796B </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"ClientDlg.h <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"Client.vcxproj <span style='color:#111;'> 8.71KB </span>","children":null,"spread":false},{"title":"Client.h <span style='color:#111;'> 474B </span>","children":null,"spread":false},{"title":"Client.cpp <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 306B </span>","children":null,"spread":false},{"title":"Client.rc <span style='color:#111;'> 11.89KB </span>","children":null,"spread":false},{"title":"Client.vcxproj.filters <span style='color:#111;'> 7.64KB </span>","children":null,"spread":false},{"title":"ClientDlg.cpp <span style='color:#111;'> 7.63KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"Server","children":[{"title":"stdafx.cpp <span style='color:#111;'> 200B </span>","children":null,"spread":false},{"title":"Server.cpp <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false},{"title":"Server.vcxproj <span style='color:#111;'> 8.71KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Server.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false},{"title":"Server.rc2 <span style='color:#111;'> 796B </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"Server.h <span style='color:#111;'> 474B </span>","children":null,"spread":false},{"title":"ServerDlg.h <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 306B </span>","children":null,"spread":false},{"title":"Server.vcxproj.filters <span style='color:#111;'> 7.64KB </span>","children":null,"spread":false},{"title":"ServerDlg.cpp <span style='color:#111;'> 7.71KB </span>","children":null,"spread":false},{"title":"Server.rc <span style='color:#111;'> 11.75KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 4.32KB </span>","children":null,"spread":false}],"spread":false},{"title":"HpSocket","children":[{"title":"TcpPullServer.cpp <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"SocketHelper.h <span style='color:#111;'> 14.48KB </span>","children":null,"spread":false},{"title":"Global","children":[{"title":"helper.h <span style='color:#111;'> 3.44KB </span>","children":null,"spread":false},{"title":"helper.cpp <span style='color:#111;'> 9.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"TcpAgent.cpp <span style='color:#111;'> 31.21KB </span>","children":null,"spread":false},{"title":"SocketInterface.h <span style='color:#111;'> 51.00KB </span>","children":null,"spread":false},{"title":"Common","children":[{"title":"PrivateHeap.h <span style='color:#111;'> 5.73KB </span>","children":null,"spread":false},{"title":"bufferpool.h <span style='color:#111;'> 11.99KB </span>","children":null,"spread":false},{"title":"WaitFor.cpp <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false},{"title":"bufferpool.cpp <span style='color:#111;'> 9.28KB </span>","children":null,"spread":false},{"title":"Semaphore.cpp <span style='color:#111;'> 610B </span>","children":null,"spread":false},{"title":"RWLock.h <span style='color:#111;'> 6.66KB </span>","children":null,"spread":false},{"title":"PrivateHeap.cpp <span style='color:#111;'> 871B </span>","children":null,"spread":false},{"title":"GeneralHelper.h <span style='color:#111;'> 4.63KB </span>","children":null,"spread":false},{"title":"Event.h <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"SysHelper.cpp <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"STLHelper.h <span style='color:#111;'> 31.84KB </span>","children":null,"spread":false},{"title":"RingBuffer.cpp <span style='color:#111;'> 611B </span>","children":null,"spread":false},{"title":"Singleton.h <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"Thread.cpp <span style='color:#111;'> 628B </span>","children":null,"spread":false},{"title":"bufferptr.h <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false},{"title":"CriticalSection.cpp <span style='color:#111;'> 615B </span>","children":null,"spread":false},{"title":"CriticalSection.h <span style='color:#111;'> 6.20KB </span>","children":null,"spread":false},{"title":"SE.h <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"Win32Helper.h <span style='color:#111;'> 18.36KB </span>","children":null,"spread":false},{"title":"RWLock.cpp <span style='color:#111;'> 3.99KB </span>","children":null,"spread":false},{"title":"Semaphore.h <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"bufferptr.cpp <span style='color:#111;'> 610B </span>","children":null,"spread":false},{"title":"RingBuffer.h <span style='color:#111;'> 6.74KB </span>","children":null,"spread":false},{"title":"FuncHelper.cpp <span style='color:#111;'> 20.04KB </span>","children":null,"spread":false},{"title":"Thread.h <span style='color:#111;'> 5.65KB </span>","children":null,"spread":false},{"title":"Event.cpp <span style='color:#111;'> 606B </span>","children":null,"spread":false},{"title":"SysHelper.h <span style='color:#111;'> 999B </span>","children":null,"spread":false},{"title":"GeneralHelper.cpp <span style='color:#111;'> 615B </span>","children":null,"spread":false},{"title":"FuncHelper.h <span style='color:#111;'> 6.77KB </span>","children":null,"spread":false},{"title":"WaitFor.h <span style='color:#111;'> 4.62KB </span>","children":null,"spread":false}],"spread":false},{"title":"TcpAgent.h <span style='color:#111;'> 10.87KB </span>","children":null,"spread":false},{"title":"UdpClient.cpp <span style='color:#111;'> 14.94KB </span>","children":null,"spread":false},{"title":"UdpCast.cpp <span style='color:#111;'> 13.15KB </span>","children":null,"spread":false},{"title":"UdpClient.h <span style='color:#111;'> 6.01KB </span>","children":null,"spread":false},{"title":"UdpServer.cpp <span style='color:#111;'> 31.10KB </span>","children":null,"spread":false},{"title":"TcpClient.h <span style='color:#111;'> 5.56KB </span>","children":null,"spread":false},{"title":"TcpPullAgent.cpp <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"TcpPullAgent.h <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"TcpPullClient.h <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"SocketHelper.cpp <span style='color:#111;'> 16.10KB </span>","children":null,"spread":false},{"title":"TcpClient.cpp <span style='color:#111;'> 12.91KB </span>","children":null,"spread":false},{"title":"UdpServer.h <span style='color:#111;'> 10.87KB </span>","children":null,"spread":false},{"title":"TcpPullClient.cpp <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"TcpServer.cpp <span style='color:#111;'> 30.72KB </span>","children":null,"spread":false},{"title":"UdpCast.h <span style='color:#111;'> 6.33KB </span>","children":null,"spread":false},{"title":"TcpServer.h <span style='color:#111;'> 11.08KB </span>","children":null,"spread":false},{"title":"TcpPullServer.h <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false}],"spread":false},{"title":"HPSocket.sln <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":".gitattributes <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • 空青~十二 :
    博主,VS2019中提示类 "CTcpClient" 不存在默认构造函数怎么办?
    2021-01-28

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明