IOCP.NET.zip

上传者: yananfei_cn | 上传时间: 2021-04-29 15:45:32 | 文件大小: 1.1MB | 文件类型: ZIP
纯C#代码实现IOCP,完全源代码,内含服务端和客户端DEMO,实现了文件上传下载,消息发送和接收,搞Socket通信的朋友可以参考下,最新修改版,上一版有朋友说有问题,经下载下来后确实有问题,不知道怎么重新上传,所有又上传了一份

文件下载

资源详情

[{"title":"( 93 个子文件 1.1MB ) IOCP.NET.zip","children":[{"title":"IOCP.NET","children":[{"title":"DX29_Net","children":[{"title":"IOCP_Net.sln <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"NETIOCPCommon","children":[{"title":"BasicFunc.cs <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"ProtocolKey.cs <span style='color:#111;'> 6.64KB </span>","children":null,"spread":false},{"title":"User.cs <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"Log.cs <span style='color:#111;'> 4.63KB </span>","children":null,"spread":false},{"title":"IncomingDataParser.cs <span style='color:#111;'> 4.40KB </span>","children":null,"spread":false},{"title":"DynamicBufferManager.cs <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false},{"title":"log4net.dll <span style='color:#111;'> 269.50KB </span>","children":null,"spread":false},{"title":"OutgoingDataAssembler.cs <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false}],"spread":true},{"title":"IOCP_Net.csproj <span style='color:#111;'> 5.25KB </span>","children":null,"spread":false},{"title":"NETIOCPServer","children":[{"title":"ServerInstance.cs <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"AsyncSocketProtocolCore","children":[{"title":"BaseSocketProtocol.cs <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"AsyncSocketCore","children":[{"title":"AsyncSocketUserToken.cs <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false},{"title":"AsyncSocketUserTokenPool.cs <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"AsyncSendBufferManager.cs <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"AsyncSocketInvokeElement.cs <span style='color:#111;'> 9.49KB </span>","children":null,"spread":false},{"title":"DaemonThread.cs <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"AsyncSocketServer.cs <span style='color:#111;'> 14.02KB </span>","children":null,"spread":false}],"spread":true},{"title":"AsyncSocketProtocol","children":[{"title":"FullHandlerSocketProtocol.cs <span style='color:#111;'> 20.30KB </span>","children":null,"spread":false},{"title":"AppHandler.cs <span style='color:#111;'> 696B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"ServerDemo","children":[{"title":"Server.designer.cs <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"Server.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"Server.cs <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false}],"spread":true},{"title":".vs","children":[{"title":"IOCP_Net","children":[{"title":"v15","children":[{"title":".suo <span style='color:#111;'> 84.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"DX29_Net","children":[{"title":"v15","children":[{"title":".suo <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"Server","children":[{"title":"sqlite3","children":[{"title":"storage.ide-wal <span style='color:#111;'> 2.55MB </span>","children":null,"spread":false},{"title":"storage.ide-shm <span style='color:#111;'> 32.00KB </span>","children":null,"spread":false},{"title":"storage.ide <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"db.lock <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"ClientDemo","children":[{"title":"Client.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"Client.designer.cs <span style='color:#111;'> 10.29KB </span>","children":null,"spread":false},{"title":"Client.cs <span style='color:#111;'> 5.98KB </span>","children":null,"spread":false}],"spread":true},{"title":"ClientTest","children":[{"title":"Program.cs <span style='color:#111;'> 467B </span>","children":null,"spread":false},{"title":"ClientTest.csproj <span style='color:#111;'> 3.25KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"ClientTest.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"ClientTest.csproj.CopyComplete <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"ClientTest.csproj.GenerateResource.cache <span style='color:#111;'> 954B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"ClientTest.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.72KB </span>","children":null,"spread":false},{"title":"ClientTest.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"ClientTest.exe <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":"ClientTest.csproj.FileListAbsolute.txt <span style='color:#111;'> 793B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"DX29_Net.dll <span style='color:#111;'> 58.00KB </span>","children":null,"spread":false},{"title":"DX29_Net.pdb <span style='color:#111;'> 149.50KB </span>","children":null,"spread":false},{"title":"ClientTest.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"ClientTest.exe <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":"log4net.dll <span style='color:#111;'> 269.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"Release","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"DX29_Net.csproj.vspscc <span style='color:#111;'> 257B </span>","children":null,"spread":false},{"title":"NETIOCPClient","children":[{"title":"AsyncSocketProtocolCore","children":[{"title":"AsyncClientBaseSocket.cs <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"AsyncSocketCore","children":[{"title":"AsyncSocketInvokeElement.cs <span style='color:#111;'> 4.30KB </span>","children":null,"spread":false},{"title":"AsynchronousClient.cs <span style='color:#111;'> 4.64KB </span>","children":null,"spread":false}],"spread":false},{"title":"AppHandler.cs <span style='color:#111;'> 650B </span>","children":null,"spread":false},{"title":"AsyncSocketProtocol","children":[{"title":"AsyncClientFullHandlerSocket.cs <span style='color:#111;'> 26.38KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"DX29_Net.dll <span style='color:#111;'> 58.00KB </span>","children":null,"spread":false},{"title":"DX29_Net.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"DX29_Net.pdb <span style='color:#111;'> 149.50KB </span>","children":null,"spread":false},{"title":"IOCP_Net.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"DX29_Net.csproj.GenerateResource.cache <span style='color:#111;'> 1021B </span>","children":null,"spread":false},{"title":"DX29_Net.csprojResolveAssemblyReference.cache <span style='color:#111;'> 195.38KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.58KB </span>","children":null,"spread":false},{"title":"DX29_Net.csprojAssemblyReference.cache <span style='color:#111;'> 39.65KB </span>","children":null,"spread":false},{"title":"DX29_Net.csproj.CopyComplete <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 827B </span>","children":null,"spread":false},{"title":"ServerDemo.Server.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"ClientDemo.Client.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"DX29_Net.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":false},{"title":"ServerTest","children":[{"title":"Program.cs <span style='color:#111;'> 467B </span>","children":null,"spread":false},{"title":"ServerTest.csproj <span style='color:#111;'> 3.25KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"ServerTest.csproj.CopyComplete <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"ServerTest.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.69KB </span>","children":null,"spread":false},{"title":"ServerTest.csproj.GenerateResource.cache <span style='color:#111;'> 954B </span>","children":null,"spread":false},{"title":"ServerTest.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"ServerTest.csprojAssemblyReference.cache <span style='color:#111;'> 49.95KB </span>","children":null,"spread":false},{"title":"ServerTest.csproj.FileListAbsolute.txt <span style='color:#111;'> 775B </span>","children":null,"spread":false},{"title":"ServerTest.exe <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":"ServerTest.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"DX29_Net.dll <span style='color:#111;'> 58.00KB </span>","children":null,"spread":false},{"title":"upload","children":null,"spread":false},{"title":"DX29_Net.pdb <span style='color:#111;'> 149.50KB </span>","children":null,"spread":false},{"title":"ServerTest.exe <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":"ServerTest.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"log4net.dll <span style='color:#111;'> 269.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • 清晨吉祥 :
    把原来的代码合并到一个类里面了,增加了文件下载功能,可能是测试版本,代码结构性有些乱,稳定性不好,只能作为学习参考。
    2021-01-22

免责申明

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