• 大小: 1.27M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 完成端口  Cowboy  Sockets  

资源简介

使用 .NET/C# 实现 TCP 高性能服务的不同方式,包括但不限于如下内容:

APM 方式,即 Asynchronous Programming Model
TAP 方式,即 Task-based Asynchronous Pattern
SAEA 方式,即 SocketAsyncEventArgs
RIO 方式,即 Registered I/O
在 .NET/C# 中对于 Socket 的支持均是基于 Windows I/O Completion Ports 完成端口技术的封装,通过不同的 Non-Blocking 封装结构来满足不同的编程需求。以上方式均已在 Cowboy.Sockets 中有完整实现,并且 APM 和 TAP 方式已经在实际项目中应用。

资源截图

代码片段和文件信息

using System.Reflection;
using System.Runtime.InteropServices;

[assembly: AssemblyDescription(“Cowboy.Sockets is a C# library for building sockets based services.“)]
[assembly: AssemblyCompany(“Dennis Gao“)]
[assembly: AssemblyProduct(“Cowboy.Sockets“)]
[assembly: AssemblyCopyright(“Copyright © 2015-2017 Dennis Gao“)]
[assembly: AssemblyTrademark(““)]
[assembly: AssemblyConfiguration(““)]
[assembly: AssemblyCulture(““)]
[assembly: AssemblyVersion(“1.4.2.0“)]
[assembly: AssemblyFileVersion(“1.4.2.0“)]
[assembly: ComVisible(false)]

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-07 05:13  Cowboy-master\
     文件        2518  2017-09-07 05:13  Cowboy-master\.gitattributes
     文件        2906  2017-09-07 05:13  Cowboy-master\.gitignore
     目录           0  2017-09-07 05:13  Cowboy-master\.nuget\
     文件         295  2017-09-07 05:13  Cowboy-master\.nuget\NuGet.Config
     文件     3787952  2017-09-07 05:13  Cowboy-master\.nuget\NuGet.exe
     文件         267  2017-09-07 05:13  Cowboy-master\.nuget\NuGet.md
     文件        7484  2017-09-07 05:13  Cowboy-master\.nuget\NuGet.targets
     目录           0  2017-09-07 05:13  Cowboy-master\Cowboy\
     目录           0  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\
     文件        3927  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Cowboy.Sockets.Experimental.csproj
     目录           0  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Properties\
     文件         181  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Properties\AssemblyInfo.cs
     目录           0  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\
     目录           0  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\
     目录           0  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\
     文件        1593  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\DefaultTcpSocketRioServerEventDispatcher.cs
     文件         364  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\ITcpSocketRioServerEventDispatcher.cs
     目录           0  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\RioSharp\
     文件        2343  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\RioSharp\Kernel32.cs
     文件        1659  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\RioSharp\RioBufferSegment.cs
     文件        1800  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\RioSharp\RioConnectionOrientedSocket.cs
     文件        2913  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\RioSharp\RioConnectionOrientedSocketPool.cs
     文件         746  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\RioSharp\RioConnectionlessSocket.cs
     文件         825  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\RioSharp\RioConnectionlessSocketPool.cs
     文件        2230  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\RioSharp\RioFixedBufferPool.cs
     文件        6783  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\RioSharp\RioSocket.cs
     文件        8092  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\RioSharp\RioSocketPool.cs
     文件        6714  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\RioSharp\RioStream.cs
     文件        5294  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\RioSharp\RioTcpClientPool.cs
     文件        5392  2017-09-07 05:13  Cowboy-master\Cowboy\Cowboy.Sockets.Experimental\Tcp\Server\RIO\RioSharp\RioTcpListener.cs
............此处省略187个文件信息

评论

共有 条评论