From 970673c2e416cc5b0c8fd255b6546be10982ccf1 Mon Sep 17 00:00:00 2001 From: cheetah Date: Mon, 6 Sep 2021 13:28:23 +0800 Subject: [PATCH 1/3] expose listen Socket property in Interface ISocket. --- src/Fleck/Interfaces/ISocket.cs | 1 + src/Fleck/SocketWrapper.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/Fleck/Interfaces/ISocket.cs b/src/Fleck/Interfaces/ISocket.cs index b6481a0a..1ab96246 100644 --- a/src/Fleck/Interfaces/ISocket.cs +++ b/src/Fleck/Interfaces/ISocket.cs @@ -14,6 +14,7 @@ public interface ISocket string RemoteIpAddress { get; } int RemotePort { get; } Stream Stream { get; } + Socket Socket { get; } bool NoDelay { get; set; } EndPoint LocalEndPoint { get; } diff --git a/src/Fleck/SocketWrapper.cs b/src/Fleck/SocketWrapper.cs index 379485e8..e7218a16 100644 --- a/src/Fleck/SocketWrapper.cs +++ b/src/Fleck/SocketWrapper.cs @@ -104,6 +104,11 @@ public Stream Stream get { return _stream; } } + public Socket Socket + { + get { return _socket; } + } + public bool NoDelay { get { return _socket.NoDelay; } From df5fb8f7f81a818abb75ecdbc2d57f1c087b54b6 Mon Sep 17 00:00:00 2001 From: cheetah Date: Mon, 18 Oct 2021 17:24:28 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=8E=BB=E6=8E=89netcoreapp2.0=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Fleck/Fleck.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fleck/Fleck.csproj b/src/Fleck/Fleck.csproj index 3a6fabc3..a7d42f77 100644 --- a/src/Fleck/Fleck.csproj +++ b/src/Fleck/Fleck.csproj @@ -9,6 +9,6 @@ https://github.com/statianzo/Fleck https://github.com/statianzo/Fleck websockets server html5 events - net40;net45;netstandard2.0;netcoreapp2.0 + net40;net45;netstandard2.0 From 3ddc5f3958dd44b9bd8d82700f30b61e53ebef8a Mon Sep 17 00:00:00 2001 From: cheetah Date: Mon, 24 Oct 2022 15:08:59 +0800 Subject: [PATCH 3/3] TargetFrameworks-->net472 --- src/Fleck/Fleck.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fleck/Fleck.csproj b/src/Fleck/Fleck.csproj index a7d42f77..7fe4ddb1 100644 --- a/src/Fleck/Fleck.csproj +++ b/src/Fleck/Fleck.csproj @@ -9,6 +9,6 @@ https://github.com/statianzo/Fleck https://github.com/statianzo/Fleck websockets server html5 events - net40;net45;netstandard2.0 + net472;netstandard2.0