HPSocket.Net
5.8.1-beta1
See the version list below for details.
dotnet add package HPSocket.Net --version 5.8.1-beta1
NuGet\Install-Package HPSocket.Net -Version 5.8.1-beta1
<PackageReference Include="HPSocket.Net" Version="5.8.1-beta1" />
paket add HPSocket.Net --version 5.8.1-beta1
#r "nuget: HPSocket.Net, 5.8.1-beta1"
// Install HPSocket.Net as a Cake Addin #addin nuget:?package=HPSocket.Net&version=5.8.1-beta1&prerelease // Install HPSocket.Net as a Cake Tool #tool nuget:?package=HPSocket.Net&version=5.8.1-beta1&prerelease
HPSocket.Net
Overview
the C# SDK for HP-Socket
.Net Framework Supported
.Net Framework 2.0+
.Net Core 2.0+
.Net 5.0
Platform supported
Windows 7+ x86/x64
Linux kernel 2.6.32+ x86/x64
mac OS 10.12+ x64
Raspberry Pi 4B
About macOS
HPSocket.Net
now supports development using.net core2.0 +
inosx 10.12 +
Libhpsocket4c.dylib
in Nuget package is compiled from HP-Socket-for-macOS
Components List
Basic Components
Basic component is the original component provided by HP-Socket. For related usage, please refer to HP-Socket Doc
TCP
ITcpServer
ITcpAgent
ITcpClient
ITcpPullServer
ITcpPullAgent
ITcpPullClient
ITcpPackServer
ITcpPackAgent
ITcpPacClient
UDP
IUdpServer
IUdpClient
IUdpCast
IUdpArqServer
IUdpArqClient
IUdpNode
SSL
ISslServer
ISslAgent
ISslClient
ISslPullServer
ISslPullAgent
ISslPullClient
ISslPackServer
ISslPackAgent
ISslPackClient
HTTP
IHttpServer
IHttpsServer
IHttpAgent
IHttpsAgent
IHttpClient
IHttpsClient
IHttpSyncClient
IHttpsSyncClient
ThreadPool
ThreadPool
Extended components
ITcpPortForwarding
IHttpEasyServer
IHttpsEasyServer
IHttpEasyAgent
IHttpsEasyAgent
IHttpEasyClient
IHttpsEasyClient
IWebSocketServer
IWebSocketAgent
HPSocket.Net
provides a TCP port forwarding component ITcpPortForwarding
, 10 lines of code can complete TCP port forwarding.
HPSocket.Net
currently provides 6 Easy components and 2 WebSocket components for easier processing of http / https / ws data packets. The basic http components provided by HP-Socket
need to implement the data packets themselves. Complete acquisition, Easy component has done these processing, http / https Easy component is bound to the following events, when the event arrives, you can get the complete data packet.
OnEasyChunkData
Complete packet event for http CHUNK messageOnEasyMessageData
Complete packet event for http GET or POST messageOnEasyWebSocketMessageData
Complete packet event for WebSocket message
WebSocket
can also use the following two components directly
IWebSocketServer
WebSocket ServerIWebSocketAgent
WebSocket Client (Unlike other Agent components, the WebSocket Agent component does not support connecting to different WebSocket Servers, which means that all connections of theIWebSocketAgent
component can only connect to the same server)
Instructions
- For the use of most components, please refer to the project in the
demo
directory. - In addition to the
Pack
series model, theAgent
series components provided byHPSocket.Net
(including theITcpPortForwarding
component) support to settingHTTP
orSocks5
proxy, which can be set in the manner ofList<IProxy>
. Multiple proxies can be set at the same time, which will be used randomly, and can be mixed withHTTP
andSocks5
proxy at the same time. For the usage method, refer to thedemo
of eachAgent
component.
Easy component event binding example
IHttpEasyServer
// Create HttpEasyServer instance
using(IHttpEasyServer httpServer = new HttpEasyServer())
{
// ... other settings
// Binding OnEasyMessageData event
httpServer.OnEasyMessageData += (sender, id, data) =>
{
// The data parameter is a complete packet each time
// ... Process data
return HttpParseResult.Ok;
};
}
IHttpEasyAgent
// Create HttpEasyAgent instance
using(IHttpEasyAgent httpAgent = new HttpEasyAgent())
{
// ... other settings
// Binding OnEasyMessageData event
httpAgent.OnEasyMessageData += (sender, id, data) =>
{
// The data parameter is a complete packet each time
// ... Process data
return HttpParseResult.Ok;
};
}
IHttpEasyClient
// Create HttpEasyClient instance
using(IHttpEasyClient httpClient = new HttpEasyClient())
{
// ... other settings
// Binding OnEasyMessageData event
httpClient.OnEasyMessageData += (sender, data) =>
{
// The data parameter is a complete packet each time
// ... Process data
return HttpParseResult.Ok;
};
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 is compatible. netcoreapp2.2 is compatible. netcoreapp3.0 is compatible. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net20 is compatible. net30 is compatible. net35 is compatible. net35-client is compatible. net40 is compatible. net40-client is compatible. net403 was computed. net45 is compatible. net451 is compatible. net452 is compatible. net46 is compatible. net461 is compatible. net462 is compatible. net463 was computed. net47 is compatible. net471 is compatible. net472 is compatible. net48 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 2.0
- No dependencies.
-
.NETCoreApp 2.1
- No dependencies.
-
.NETCoreApp 2.2
- No dependencies.
-
.NETCoreApp 3.0
- No dependencies.
-
.NETCoreApp 3.1
- No dependencies.
-
.NETFramework 2.0
- No dependencies.
-
.NETFramework 3.0
- No dependencies.
-
.NETFramework 3.5
- No dependencies.
-
.NETFramework 3.5 Client
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.0 Client
- No dependencies.
-
.NETFramework 4.5
- No dependencies.
-
.NETFramework 4.5.1
- No dependencies.
-
.NETFramework 4.5.2
- No dependencies.
-
.NETFramework 4.6
- No dependencies.
-
.NETFramework 4.6.1
- No dependencies.
-
.NETFramework 4.6.2
- No dependencies.
-
.NETFramework 4.7
- No dependencies.
-
.NETFramework 4.7.1
- No dependencies.
-
.NETFramework 4.7.2
- No dependencies.
-
.NETFramework 4.8
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
.NETStandard 2.1
- No dependencies.
-
net5.0
- No dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on HPSocket.Net:
Package | Downloads |
---|---|
SocketLibrary.Core
SocketLibrary core library. |
|
Tkx.Common.SocketComponent
Package Description |
|
T45TagLibrary
Package Description |
|
ADClass
Package Description |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on HPSocket.Net:
Repository | Stars |
---|---|
int2e/HPSocket.Net
the C# SDK for HP-Socket https://github.com/ldcsaa/HP-Socket
|
Version | Downloads | Last updated |
---|---|---|
6.0.3.1 | 381 | 12/2/2024 |
6.0.3 | 949 | 10/8/2024 |
6.0.2 | 905 | 8/16/2024 |
6.0.1.8 | 1,012 | 7/6/2024 |
6.0.1.1 | 2,125 | 4/11/2024 |
6.0.1 | 958 | 2/29/2024 |
5.9.5.1 | 1,256 | 1/22/2024 |
5.9.5 | 836 | 1/21/2024 |
5.9.4.1 | 908 | 1/18/2024 |
5.9.4 | 1,564 | 1/7/2024 |
5.9.3.1 | 5,101 | 8/15/2023 |
5.8.8.3 | 6,035 | 11/28/2022 |
5.8.8.2 | 5,268 | 6/9/2022 |
5.8.8.1 | 3,484 | 4/21/2022 |
5.8.7.2 | 2,263 | 3/29/2022 |
5.8.7.1 | 2,455 | 3/9/2022 |
5.8.6 | 2,647 | 2/1/2022 |
5.8.6-beta1 | 1,582 | 1/14/2022 |
5.8.5.5 | 2,647 | 1/1/2022 |
5.8.5.4 | 1,704 | 12/30/2021 |
5.8.5.2 | 2,550 | 11/27/2021 |
5.8.5.1 | 3,724 | 11/20/2021 |
5.8.5 | 3,273 | 9/5/2021 |
5.8.4.1 | 4,029 | 8/9/2021 |
5.8.4 | 2,965 | 7/23/2021 |
5.8.4-beta2 | 1,796 | 7/11/2021 |
5.8.3.2 | 1,994 | 7/8/2021 |
5.8.3.1 | 3,630 | 5/15/2021 |
5.8.2.5 | 2,185 | 4/23/2021 |
5.8.2.4 | 1,899 | 4/23/2021 |
5.8.2.3 | 2,068 | 4/22/2021 |
5.8.2.2 | 1,811 | 4/21/2021 |
5.8.2.1 | 2,294 | 4/20/2021 |
5.8.2 | 3,521 | 3/13/2021 |
5.8.1.1 | 3,603 | 1/26/2021 |
5.8.1-beta3 | 1,902 | 1/17/2021 |
5.8.1-beta2 | 1,886 | 1/13/2021 |
5.8.1-beta1 | 2,087 | 12/14/2020 |
5.7.3.2 | 3,675 | 12/13/2020 |
5.7.3.1 | 2,237 | 12/13/2020 |
5.7.3 | 2,266 | 12/9/2020 |
5.7.3-beta1 | 2,025 | 11/15/2020 |
5.7.2.9 | 3,533 | 9/27/2020 |
5.7.2.8 | 2,543 | 9/13/2020 |
5.7.2 | 5,942 | 5/8/2020 |
5.7.2-rc2 | 1,946 | 4/28/2020 |
5.7.2-rc1 | 1,880 | 4/24/2020 |
5.7.1.13 | 2,433 | 4/23/2020 |
5.7.1.12 | 2,166 | 4/21/2020 |
5.7.1.11 | 2,277 | 4/12/2020 |
5.7.1.10 | 2,526 | 4/2/2020 |
5.7.1.9 | 2,356 | 3/27/2020 |
5.7.1.8 | 2,146 | 3/26/2020 |
5.7.1.5 | 3,116 | 2/27/2020 |
5.7.1.4 | 3,317 | 2/23/2020 |
5.7.1.3 | 2,093 | 2/23/2020 |
5.7.1.2 | 2,321 | 2/18/2020 |
5.7.1.1 | 2,800 | 1/9/2020 |