C#大文件传输之SOCKET同步、异步、WCF同步、异步

上传者: luminji | 上传时间: 2023-06-03 09:39:40 | 文件大小: 220KB | 文件类型: RAR
该示例,整合了C#文件传输中的SOCKET同步、异步、WCF同步、异步,并分别提供了进度条,以便查看各类传输的效率(SOCKET同步>SOCKET异步>WCF同步>WCF异步)。 运行的时候,需要自己添加一个可供传输的文件。可查看源码获取该文件名。 详细请看http://blog.csdn.net/luminji/archive/2010/03/10/5364825.aspx

文件下载

资源详情

[{"title":"( 82 个子文件 220KB ) C#大文件传输之SOCKET同步、异步、WCF同步、异步","children":[{"title":"WCFTranFile","children":[{"title":"Contract","children":[{"title":"Contract.csproj <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"Contract.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"Contract.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"Contract.pdb <span style='color:#111;'> 29.50KB </span>","children":null,"spread":false},{"title":"Contract.dll <span style='color:#111;'> 10.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"Contract.csproj.FileListAbsolute.txt <span style='color:#111;'> 877B </span>","children":null,"spread":false},{"title":"Contract.csproj.GenerateResource.Cache <span style='color:#111;'> 789B </span>","children":null,"spread":false},{"title":"Contract.pdb <span style='color:#111;'> 29.50KB </span>","children":null,"spread":false},{"title":"Refactor","children":[{"title":"Contract.dll <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"Contract.dll <span style='color:#111;'> 10.00KB </span>","children":null,"spread":false},{"title":"Contract.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"CustomFileInfo.cs <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false},{"title":"IContract.cs <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"ServerContract.cs <span style='color:#111;'> 5.49KB </span>","children":null,"spread":false}],"spread":true},{"title":"SocketServiceContract","children":[{"title":"ServerListen.cs <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"MessEvent.cs <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"SocketServiceContract.pdb <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"SocketServiceContract.dll <span style='color:#111;'> 14.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"SocketServiceContract.pdb <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"SocketServiceContract.csproj.FileListAbsolute.txt <span style='color:#111;'> 795B </span>","children":null,"spread":false},{"title":"Refactor","children":[{"title":"SocketServiceContract.dll <span style='color:#111;'> 7.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"TempPE","children":null,"spread":false},{"title":"SocketServiceContract.dll <span style='color:#111;'> 14.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"SynchroSocketServerProcess.cs <span style='color:#111;'> 5.93KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"SocketFileInfo.cs <span style='color:#111;'> 3.31KB </span>","children":null,"spread":false},{"title":"SocketServiceContract.csproj <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false},{"title":"SynchroSocketClient.cs <span style='color:#111;'> 4.23KB </span>","children":null,"spread":false},{"title":"AsynchronousSocketServerProcess.cs <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false},{"title":"AsynchronousSocketClient.cs <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false}],"spread":false},{"title":"Client","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"SocketServiceContract.pdb <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"Client.exe <span style='color:#111;'> 18.50KB </span>","children":null,"spread":false},{"title":"Client.pdb <span style='color:#111;'> 41.50KB </span>","children":null,"spread":false},{"title":"Contract.pdb <span style='color:#111;'> 29.50KB </span>","children":null,"spread":false},{"title":"Contract.dll <span style='color:#111;'> 10.00KB </span>","children":null,"spread":false},{"title":"Client.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"Client.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"SocketServiceContract.dll <span style='color:#111;'> 14.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"Client.exe <span style='color:#111;'> 18.50KB </span>","children":null,"spread":false},{"title":"Client.pdb <span style='color:#111;'> 41.50KB </span>","children":null,"spread":false},{"title":"Client.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Client.MainForm.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Client.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"Client.csproj.GenerateResource.Cache <span style='color:#111;'> 850B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"CallBack.cs <span style='color:#111;'> 795B </span>","children":null,"spread":false},{"title":"MainForm.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"MainForm.cs <span style='color:#111;'> 11.74KB </span>","children":null,"spread":false},{"title":"MainForm.Designer.cs <span style='color:#111;'> 12.93KB </span>","children":null,"spread":false},{"title":"Client.csproj <span style='color:#111;'> 4.23KB </span>","children":null,"spread":false}],"spread":true},{"title":"WCFTranFile.suo <span style='color:#111;'> 50.00KB </span>","children":null,"spread":false},{"title":"Server","children":[{"title":"Server.csproj <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"Server.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"SocketServiceContract.pdb <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"Server.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"Contract.pdb <span style='color:#111;'> 29.50KB </span>","children":null,"spread":false},{"title":"Contract.dll <span style='color:#111;'> 10.00KB </span>","children":null,"spread":false},{"title":"SocketServiceContract.dll <span style='color:#111;'> 14.50KB </span>","children":null,"spread":false},{"title":"Server.exe <span style='color:#111;'> 9.50KB </span>","children":null,"spread":false},{"title":"Server.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"Server.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"Server.csproj.GenerateResource.Cache <span style='color:#111;'> 789B </span>","children":null,"spread":false},{"title":"ResolveAssemblyReference.cache <span style='color:#111;'> 9.44KB </span>","children":null,"spread":false},{"title":"Server.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"Server.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"Server.exe <span style='color:#111;'> 9.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 3.58KB </span>","children":null,"spread":false}],"spread":true},{"title":"WCFTranFile.sln <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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