C#使用UDP协议socket编程收发数据

上传者: piaoliuxing126 | 上传时间: 2021-03-18 16:56:15 | 文件大小: 9.81MB | 文件类型: ZIP
本源码采用第三方类库,详细演示如何实现Udp协议的数据收发。调用接口简单,关键是底层采用了IOCP模型,效率高,比自己实现要稳定,且高效。

文件下载

资源详情

[{"title":"( 70 个子文件 9.81MB ) C#使用UDP协议socket编程收发数据","children":[{"title":"UDPDemo","children":[{"title":".vs","children":[{"title":"UDPDemo","children":[{"title":"v15","children":[{"title":".suo <span style='color:#111;'> 61.50KB </span>","children":null,"spread":false},{"title":"Server","children":[{"title":"sqlite3","children":[{"title":"storage.ide <span style='color:#111;'> 528.00KB </span>","children":null,"spread":false},{"title":"storage.ide-shm <span style='color:#111;'> 32.00KB </span>","children":null,"spread":false},{"title":"db.lock <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"storage.ide-wal <span style='color:#111;'> 3.93MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"Supercharger","children":[{"title":"CoreDll","children":[{"title":"global_history.dat <span style='color:#111;'> 7.27KB </span>","children":null,"spread":false},{"title":"codemap.dat <span style='color:#111;'> 14.17KB </span>","children":null,"spread":false},{"title":"workbench.dat <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":true},{"title":"UDPClient","children":[{"title":"global_history.dat <span style='color:#111;'> 6.85KB </span>","children":null,"spread":false},{"title":"codemap.dat <span style='color:#111;'> 7.16KB </span>","children":null,"spread":false},{"title":"workbench.dat <span style='color:#111;'> 213B </span>","children":null,"spread":false}],"spread":true},{"title":"UDPServer","children":[{"title":"global_history.dat <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"codemap.dat <span style='color:#111;'> 6.75KB </span>","children":null,"spread":false},{"title":"workbench.dat <span style='color:#111;'> 213B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"StriveEngine.BinaryDemo-UDP.suo <span style='color:#111;'> 50.50KB </span>","children":null,"spread":false},{"title":"CoreDll","children":[{"title":"MessageType.cs <span style='color:#111;'> 560B </span>","children":null,"spread":false},{"title":"ResponseFormat.cs <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"CoreDll.csproj <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"SerializeHelper.cs <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"RequestFormatt.cs <span style='color:#111;'> 890B </span>","children":null,"spread":false},{"title":"StreamContractHelper.cs <span style='color:#111;'> 439B </span>","children":null,"spread":false},{"title":"MessageHead.cs <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"UDPClient","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"SharpSocket.xml <span style='color:#111;'> 32.23KB </span>","children":null,"spread":false},{"title":"CoreDll.dll <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":"SharpSocket.dll <span style='color:#111;'> 305.00KB </span>","children":null,"spread":false},{"title":"UDPClient.exe <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false},{"title":"SGSupport64.dll <span style='color:#111;'> 2.50MB </span>","children":null,"spread":false},{"title":"UDPClient.pdb <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"CoreDll.pdb <span style='color:#111;'> 25.50KB </span>","children":null,"spread":false},{"title":"SGSupport.dll <span style='color:#111;'> 1.47MB </span>","children":null,"spread":false},{"title":"SharpSocket.pdb <span style='color:#111;'> 355.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Form1.Designer.cs <span style='color:#111;'> 9.40KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false},{"title":"UDPClient.csproj <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 8.07KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"UDPDemo.sln <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false},{"title":"UDPDemo.suo <span style='color:#111;'> 24.50KB </span>","children":null,"spread":false},{"title":"说明.txt <span style='color:#111;'> 401B </span>","children":null,"spread":false},{"title":"UDPServer","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"SharpSocket.xml <span style='color:#111;'> 32.23KB </span>","children":null,"spread":false},{"title":"CoreDll.dll <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":"SharpSocket.dll <span style='color:#111;'> 305.00KB </span>","children":null,"spread":false},{"title":"SGSupport64.dll <span style='color:#111;'> 2.50MB </span>","children":null,"spread":false},{"title":"CoreDll.pdb <span style='color:#111;'> 25.50KB </span>","children":null,"spread":false},{"title":"SGSupport.dll <span style='color:#111;'> 1.47MB </span>","children":null,"spread":false},{"title":"UDPServer.exe <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"UDPServer.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"SharpSocket.pdb <span style='color:#111;'> 355.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Form1.Designer.cs <span style='color:#111;'> 11.20KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 4.92KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.87KB </span>","children":null,"spread":false},{"title":"UDPServer.csproj <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Dll","children":[{"title":"SharpSocket.xml <span style='color:#111;'> 32.23KB </span>","children":null,"spread":false},{"title":"SharpSocket.dll <span style='color:#111;'> 305.00KB </span>","children":null,"spread":false},{"title":"SGSupport64.dll <span style='color:#111;'> 2.50MB </span>","children":null,"spread":false},{"title":"SGSupport.dll <span style='color:#111;'> 1.47MB </span>","children":null,"spread":false},{"title":"SharpSocket.pdb <span style='color:#111;'> 355.50KB </span>","children":null,"spread":false},{"title":"SharpSocket.chm <span style='color:#111;'> 316.01KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • YJRong :
    还可以,多谢。
    2019-11-08

免责申明

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