CSuperSocket.SocketEngine 2.1.2.1

Install-Package CSuperSocket.SocketEngine -Version 2.1.2.1
dotnet add package CSuperSocket.SocketEngine --version 2.1.2.1
<PackageReference Include="CSuperSocket.SocketEngine" Version="2.1.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CSuperSocket.SocketEngine --version 2.1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CSuperSocket.SocketEngine, 2.1.2.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CSuperSocket.SocketEngine as a Cake Addin
#addin nuget:?package=CSuperSocket.SocketEngine&version=2.1.2.1

// Install CSuperSocket.SocketEngine as a Cake Tool
#tool nuget:?package=CSuperSocket.SocketEngine&version=2.1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

将之前的条件编译改成 IServerConfig增加PlatformType(平台配置),代码层面控制平台代码逻辑

NuGet packages (1)

Showing the top 1 NuGet packages that depend on CSuperSocket.SocketEngine:

Package Downloads
Howell.SuperSocket.Extensions

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.2.1 4,756 1/23/2018
2.1.2 566 1/23/2018
2.1.0 645 1/8/2018
2.0.1 630 1/8/2018
2.0.0 640 1/5/2018

IServerConfig增加PlatformType(平台配置),代码层面控制平台代码逻辑
if (config.PlatformType!=PlatformType.Linux)
               {
                     Console.WriteLine("开始进入异常片段 该句在linux下不被支持 m_ListenSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.DontLinger, true);");
               m_ListenSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.DontLinger, true);
               }