在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → DotNetty写的socket并发测试程序.zip

DotNetty写的socket并发测试程序.zip

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:4.86M
  • 下载次数:7
  • 浏览次数:89
  • 发布时间:2021-12-02
  • 实例类别:一般编程问题
  • 发 布 人:js2021
  • 文件格式:.zip
  • 所需积分:2
 

实例介绍

【实例简介】
因为公司在用java和.net的Netty开发云盘,发现java服务端写得有问题,老断线或返不回数据,所以才写这个测试程序来证明DotNetty的客户端可以实现10W以上的并发,本源代码有提供server和client。代码容易看懂。
【实例截图】
【核心代码】
16359647462114359831.zip
├── CommonLibrary
│   ├── bin
│   │   └── Debug
│   │   └── netstandard2.0
│   │   ├── CommonLibrary.deps.json
│   │   ├── CommonLibrary.dll
│   │   └── CommonLibrary.pdb
│   ├── CommonDelegate.cs
│   ├── CommonEnum.cs
│   ├── CommonLibrary.csproj
│   ├── MessageConverter.cs
│   ├── Message.cs
│   └── obj
│   ├── CommonLibrary.csproj.nuget.cache
│   ├── CommonLibrary.csproj.nuget.g.props
│   ├── CommonLibrary.csproj.nuget.g.targets
│   ├── Debug
│   │   └── netstandard2.0
│   │   ├── CommonLibrary.AssemblyInfo.cs
│   │   ├── CommonLibrary.AssemblyInfoInputs.cache
│   │   ├── CommonLibrary.assets.cache
│   │   ├── CommonLibrary.csprojAssemblyReference.cache
│   │   ├── CommonLibrary.csproj.CoreCompileInputs.cache
│   │   ├── CommonLibrary.csproj.FileListAbsolute.txt
│   │   ├── CommonLibrary.dll
│   │   └── CommonLibrary.pdb
│   └── project.assets.json
├── SocketClient
│   ├── App.config
│   ├── App.xaml
│   ├── App.xaml.cs
│   ├── bin
│   │   └── Debug
│   │   ├── CommonLibrary.dll
│   │   ├── CommonLibrary.pdb
│   │   ├── DotNetty.Buffers.dll
│   │   ├── DotNetty.Buffers.xml
│   │   ├── DotNetty.Codecs.dll
│   │   ├── DotNetty.Codecs.xml
│   │   ├── DotNetty.Common.dll
│   │   ├── DotNetty.Common.xml
│   │   ├── DotNetty.Handlers.dll
│   │   ├── DotNetty.Handlers.xml
│   │   ├── DotNetty.Transport.dll
│   │   ├── DotNetty.Transport.xml
│   │   ├── Microsoft.Extensions.DependencyInjection.Abstractions.dll
│   │   ├── Microsoft.Extensions.DependencyInjection.Abstractions.xml
│   │   ├── Microsoft.Extensions.Logging.Abstractions.dll
│   │   ├── Microsoft.Extensions.Logging.Abstractions.xml
│   │   ├── Microsoft.Extensions.Logging.dll
│   │   ├── Microsoft.Extensions.Logging.xml
│   │   ├── Microsoft.Win32.Primitives.dll
│   │   ├── netstandard.dll
│   │   ├── Newtonsoft.Json.dll
│   │   ├── Newtonsoft.Json.xml
│   │   ├── SocketClient.exe
│   │   ├── SocketClient.exe.config
│   │   ├── SocketClient.pdb
│   │   ├── System.AppContext.dll
│   │   ├── System.Collections.Concurrent.dll
│   │   ├── System.Collections.dll
│   │   ├── System.Collections.Immutable.dll
│   │   ├── System.Collections.Immutable.xml
│   │   ├── System.Collections.NonGeneric.dll
│   │   ├── System.Collections.Specialized.dll
│   │   ├── System.ComponentModel.dll
│   │   ├── System.ComponentModel.EventBasedAsync.dll
│   │   ├── System.ComponentModel.Primitives.dll
│   │   ├── System.ComponentModel.TypeConverter.dll
│   │   ├── System.Console.dll
│   │   ├── System.Data.Common.dll
│   │   ├── System.Diagnostics.Contracts.dll
│   │   ├── System.Diagnostics.Debug.dll
│   │   ├── System.Diagnostics.DiagnosticSource.dll
│   │   ├── System.Diagnostics.DiagnosticSource.xml
│   │   ├── System.Diagnostics.FileVersionInfo.dll
│   │   ├── System.Diagnostics.Process.dll
│   │   ├── System.Diagnostics.StackTrace.dll
│   │   ├── System.Diagnostics.TextWriterTraceListener.dll
│   │   ├── System.Diagnostics.Tools.dll
│   │   ├── System.Diagnostics.TraceSource.dll
│   │   ├── System.Diagnostics.Tracing.dll
│   │   ├── System.Drawing.Primitives.dll
│   │   ├── System.Dynamic.Runtime.dll
│   │   ├── System.Globalization.Calendars.dll
│   │   ├── System.Globalization.dll
│   │   ├── System.Globalization.Extensions.dll
│   │   ├── System.IO.Compression.dll
│   │   ├── System.IO.Compression.ZipFile.dll
│   │   ├── System.IO.dll
│   │   ├── System.IO.FileSystem.dll
│   │   ├── System.IO.FileSystem.DriveInfo.dll
│   │   ├── System.IO.FileSystem.Primitives.dll
│   │   ├── System.IO.FileSystem.Watcher.dll
│   │   ├── System.IO.IsolatedStorage.dll
│   │   ├── System.IO.MemoryMappedFiles.dll
│   │   ├── System.IO.Pipes.dll
│   │   ├── System.IO.UnmanagedMemoryStream.dll
│   │   ├── System.Linq.dll
│   │   ├── System.Linq.Expressions.dll
│   │   ├── System.Linq.Parallel.dll
│   │   ├── System.Linq.Queryable.dll
│   │   ├── System.Net.Http.dll
│   │   ├── System.Net.NameResolution.dll
│   │   ├── System.Net.NetworkInformation.dll
│   │   ├── System.Net.Ping.dll
│   │   ├── System.Net.Primitives.dll
│   │   ├── System.Net.Requests.dll
│   │   ├── System.Net.Security.dll
│   │   ├── System.Net.Sockets.dll
│   │   ├── System.Net.WebHeaderCollection.dll
│   │   ├── System.Net.WebSockets.Client.dll
│   │   ├── System.Net.WebSockets.dll
│   │   ├── System.ObjectModel.dll
│   │   ├── System.Reflection.dll
│   │   ├── System.Reflection.Extensions.dll
│   │   ├── System.Reflection.Primitives.dll
│   │   ├── System.Resources.Reader.dll
│   │   ├── System.Resources.ResourceManager.dll
│   │   ├── System.Resources.Writer.dll
│   │   ├── System.Runtime.CompilerServices.Unsafe.dll
│   │   ├── System.Runtime.CompilerServices.Unsafe.xml
│   │   ├── System.Runtime.CompilerServices.VisualC.dll
│   │   ├── System.Runtime.dll
│   │   ├── System.Runtime.Extensions.dll
│   │   ├── System.Runtime.Handles.dll
│   │   ├── System.Runtime.InteropServices.dll
│   │   ├── System.Runtime.InteropServices.RuntimeInformation.dll
│   │   ├── System.Runtime.Numerics.dll
│   │   ├── System.Runtime.Serialization.Formatters.dll
│   │   ├── System.Runtime.Serialization.Json.dll
│   │   ├── System.Runtime.Serialization.Primitives.dll
│   │   ├── System.Runtime.Serialization.Xml.dll
│   │   ├── System.Security.Claims.dll
│   │   ├── System.Security.Cryptography.Algorithms.dll
│   │   ├── System.Security.Cryptography.Csp.dll
│   │   ├── System.Security.Cryptography.Encoding.dll
│   │   ├── System.Security.Cryptography.Primitives.dll
│   │   ├── System.Security.Cryptography.X509Certificates.dll
│   │   ├── System.Security.Principal.dll
│   │   ├── System.Security.SecureString.dll
│   │   ├── System.Text.Encoding.dll
│   │   ├── System.Text.Encoding.Extensions.dll
│   │   ├── System.Text.RegularExpressions.dll
│   │   ├── System.Threading.dll
│   │   ├── System.Threading.Overlapped.dll
│   │   ├── System.Threading.Tasks.dll
│   │   ├── System.Threading.Tasks.Extensions.dll
│   │   ├── System.Threading.Tasks.Extensions.xml
│   │   ├── System.Threading.Tasks.Parallel.dll
│   │   ├── System.Threading.Thread.dll
│   │   ├── System.Threading.ThreadPool.dll
│   │   ├── System.Threading.Timer.dll
│   │   ├── System.ValueTuple.dll
│   │   ├── System.Xml.ReaderWriter.dll
│   │   ├── System.Xml.XDocument.dll
│   │   ├── System.Xml.XmlDocument.dll
│   │   ├── System.Xml.XmlSerializer.dll
│   │   ├── System.Xml.XPath.dll
│   │   └── System.Xml.XPath.XDocument.dll
│   ├── ClientMainWindow.xaml
│   ├── ClientMainWindow.xaml.cs
│   ├── Netty
│   │   └── NettyHandler.cs
│   ├── obj
│   │   └── Debug
│   │   ├── App.g.cs
│   │   ├── App.g.i.cs
│   │   ├── ClientMainWindow.baml
│   │   ├── ClientMainWindow.g.cs
│   │   ├── ClientMainWindow.g.i.cs
│   │   ├── DesignTimeResolveAssemblyReferences.cache
│   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   ├── SocketClient.csprojAssemblyReference.cache
│   │   ├── SocketClient.csproj.CopyComplete
│   │   ├── SocketClient.csproj.CoreCompileInputs.cache
│   │   ├── SocketClient.csproj.FileListAbsolute.txt
│   │   ├── SocketClient.csproj.GenerateResource.cache
│   │   ├── SocketClient.exe
│   │   ├── SocketClient.exe.config
│   │   ├── SocketClient.g.resources
│   │   ├── SocketClient_MarkupCompile.cache
│   │   ├── SocketClient_MarkupCompile.i.cache
│   │   ├── SocketClient_MarkupCompile.i.lref
│   │   ├── SocketClient_MarkupCompile.lref
│   │   ├── SocketClient.pdb
│   │   ├── SocketClient.Properties.Resources.resources
│   │   ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│   │   ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│   │   ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│   │   └── TempPE
│   │   └── Properties.Resources.Designer.cs.dll
│   ├── packages.config
│   ├── Properties
│   │   ├── AssemblyInfo.cs
│   │   ├── Resources.Designer.cs
│   │   ├── Resources.resx
│   │   ├── Settings.Designer.cs
│   │   └── Settings.settings
│   └── SocketClient.csproj
├── SocketServer
│   ├── App.config
│   ├── App.xaml
│   ├── App.xaml.cs
│   ├── bin
│   │   └── Debug
│   │   ├── CommonLibrary.dll
│   │   ├── CommonLibrary.pdb
│   │   ├── DotNetty.Buffers.dll
│   │   ├── DotNetty.Buffers.xml
│   │   ├── DotNetty.Codecs.dll
│   │   ├── DotNetty.Codecs.Http.dll
│   │   ├── DotNetty.Codecs.Http.xml
│   │   ├── DotNetty.Codecs.xml
│   │   ├── DotNetty.Common.dll
│   │   ├── DotNetty.Common.xml
│   │   ├── DotNetty.Handlers.dll
│   │   ├── DotNetty.Handlers.xml
│   │   ├── DotNetty.Transport.dll
│   │   ├── DotNetty.Transport.xml
│   │   ├── Microsoft.Extensions.DependencyInjection.Abstractions.dll
│   │   ├── Microsoft.Extensions.DependencyInjection.Abstractions.xml
│   │   ├── Microsoft.Extensions.Logging.Abstractions.dll
│   │   ├── Microsoft.Extensions.Logging.Abstractions.xml
│   │   ├── Microsoft.Extensions.Logging.dll
│   │   ├── Microsoft.Extensions.Logging.xml
│   │   ├── Microsoft.Win32.Primitives.dll
│   │   ├── netstandard.dll
│   │   ├── Newtonsoft.Json.dll
│   │   ├── Newtonsoft.Json.xml
│   │   ├── SocketServer.exe
│   │   ├── SocketServer.exe.config
│   │   ├── SocketServer.pdb
│   │   ├── System.AppContext.dll
│   │   ├── System.Collections.Concurrent.dll
│   │   ├── System.Collections.dll
│   │   ├── System.Collections.Immutable.dll
│   │   ├── System.Collections.Immutable.xml
│   │   ├── System.Collections.NonGeneric.dll
│   │   ├── System.Collections.Specialized.dll
│   │   ├── System.ComponentModel.dll
│   │   ├── System.ComponentModel.EventBasedAsync.dll
│   │   ├── System.ComponentModel.Primitives.dll
│   │   ├── System.ComponentModel.TypeConverter.dll
│   │   ├── System.Console.dll
│   │   ├── System.Data.Common.dll
│   │   ├── System.Diagnostics.Contracts.dll
│   │   ├── System.Diagnostics.Debug.dll
│   │   ├── System.Diagnostics.DiagnosticSource.dll
│   │   ├── System.Diagnostics.DiagnosticSource.xml
│   │   ├── System.Diagnostics.FileVersionInfo.dll
│   │   ├── System.Diagnostics.Process.dll
│   │   ├── System.Diagnostics.StackTrace.dll
│   │   ├── System.Diagnostics.TextWriterTraceListener.dll
│   │   ├── System.Diagnostics.Tools.dll
│   │   ├── System.Diagnostics.TraceSource.dll
│   │   ├── System.Diagnostics.Tracing.dll
│   │   ├── System.Drawing.Primitives.dll
│   │   ├── System.Dynamic.Runtime.dll
│   │   ├── System.Globalization.Calendars.dll
│   │   ├── System.Globalization.dll
│   │   ├── System.Globalization.Extensions.dll
│   │   ├── System.IO.Compression.dll
│   │   ├── System.IO.Compression.ZipFile.dll
│   │   ├── System.IO.dll
│   │   ├── System.IO.FileSystem.dll
│   │   ├── System.IO.FileSystem.DriveInfo.dll
│   │   ├── System.IO.FileSystem.Primitives.dll
│   │   ├── System.IO.FileSystem.Watcher.dll
│   │   ├── System.IO.IsolatedStorage.dll
│   │   ├── System.IO.MemoryMappedFiles.dll
│   │   ├── System.IO.Pipes.dll
│   │   ├── System.IO.UnmanagedMemoryStream.dll
│   │   ├── System.Linq.dll
│   │   ├── System.Linq.Expressions.dll
│   │   ├── System.Linq.Parallel.dll
│   │   ├── System.Linq.Queryable.dll
│   │   ├── System.Net.Http.dll
│   │   ├── System.Net.NameResolution.dll
│   │   ├── System.Net.NetworkInformation.dll
│   │   ├── System.Net.Ping.dll
│   │   ├── System.Net.Primitives.dll
│   │   ├── System.Net.Requests.dll
│   │   ├── System.Net.Security.dll
│   │   ├── System.Net.Sockets.dll
│   │   ├── System.Net.WebHeaderCollection.dll
│   │   ├── System.Net.WebSockets.Client.dll
│   │   ├── System.Net.WebSockets.dll
│   │   ├── System.ObjectModel.dll
│   │   ├── System.Reflection.dll
│   │   ├── System.Reflection.Extensions.dll
│   │   ├── System.Reflection.Primitives.dll
│   │   ├── System.Resources.Reader.dll
│   │   ├── System.Resources.ResourceManager.dll
│   │   ├── System.Resources.Writer.dll
│   │   ├── System.Runtime.CompilerServices.Unsafe.dll
│   │   ├── System.Runtime.CompilerServices.Unsafe.xml
│   │   ├── System.Runtime.CompilerServices.VisualC.dll
│   │   ├── System.Runtime.dll
│   │   ├── System.Runtime.Extensions.dll
│   │   ├── System.Runtime.Handles.dll
│   │   ├── System.Runtime.InteropServices.dll
│   │   ├── System.Runtime.InteropServices.RuntimeInformation.dll
│   │   ├── System.Runtime.Numerics.dll
│   │   ├── System.Runtime.Serialization.Formatters.dll
│   │   ├── System.Runtime.Serialization.Json.dll
│   │   ├── System.Runtime.Serialization.Primitives.dll
│   │   ├── System.Runtime.Serialization.Xml.dll
│   │   ├── System.Security.Claims.dll
│   │   ├── System.Security.Cryptography.Algorithms.dll
│   │   ├── System.Security.Cryptography.Csp.dll
│   │   ├── System.Security.Cryptography.Encoding.dll
│   │   ├── System.Security.Cryptography.Primitives.dll
│   │   ├── System.Security.Cryptography.X509Certificates.dll
│   │   ├── System.Security.Principal.dll
│   │   ├── System.Security.SecureString.dll
│   │   ├── System.Text.Encoding.dll
│   │   ├── System.Text.Encoding.Extensions.dll
│   │   ├── System.Text.RegularExpressions.dll
│   │   ├── System.Threading.dll
│   │   ├── System.Threading.Overlapped.dll
│   │   ├── System.Threading.Tasks.dll
│   │   ├── System.Threading.Tasks.Extensions.dll
│   │   ├── System.Threading.Tasks.Extensions.xml
│   │   ├── System.Threading.Tasks.Parallel.dll
│   │   ├── System.Threading.Thread.dll
│   │   ├── System.Threading.ThreadPool.dll
│   │   ├── System.Threading.Timer.dll
│   │   ├── System.ValueTuple.dll
│   │   ├── System.Xml.ReaderWriter.dll
│   │   ├── System.Xml.XDocument.dll
│   │   ├── System.Xml.XmlDocument.dll
│   │   ├── System.Xml.XmlSerializer.dll
│   │   ├── System.Xml.XPath.dll
│   │   └── System.Xml.XPath.XDocument.dll
│   ├── Netty
│   │   └── ServerHandler.cs
│   ├── obj
│   │   └── Debug
│   │   ├── App.g.cs
│   │   ├── App.g.i.cs
│   │   ├── DesignTimeResolveAssemblyReferences.cache
│   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   ├── ServerMainWindow.baml
│   │   ├── ServerMainWindow.g.cs
│   │   ├── ServerMainWindow.g.i.cs
│   │   ├── SocketServer.csprojAssemblyReference.cache
│   │   ├── SocketServer.csproj.CopyComplete
│   │   ├── SocketServer.csproj.CoreCompileInputs.cache
│   │   ├── SocketServer.csproj.FileListAbsolute.txt
│   │   ├── SocketServer.csproj.GenerateResource.cache
│   │   ├── SocketServer.exe
│   │   ├── SocketServer.exe.config
│   │   ├── SocketServer.g.resources
│   │   ├── SocketServer_MarkupCompile.cache
│   │   ├── SocketServer_MarkupCompile.lref
│   │   ├── SocketServer.pdb
│   │   ├── SocketServer.Properties.Resources.resources
│   │   ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│   │   ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│   │   ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│   │   └── TempPE
│   ├── packages.config
│   ├── Properties
│   │   ├── AssemblyInfo.cs
│   │   ├── Resources.Designer.cs
│   │   ├── Resources.resx
│   │   ├── Settings.Designer.cs
│   │   └── Settings.settings
│   ├── ServerMainWindow.xaml
│   ├── ServerMainWindow.xaml.cs
│   └── SocketServer.csproj
└── SocketServer.sln

23 directories, 350 files

标签:

实例下载地址

DotNetty写的socket并发测试程序.zip

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警