TouchSocket 4.0.0-beta.140
Prefix ReservedSee the version list below for details.
dotnet add package TouchSocket --version 4.0.0-beta.140
NuGet\Install-Package TouchSocket -Version 4.0.0-beta.140
<PackageReference Include="TouchSocket" Version="4.0.0-beta.140" />
<PackageVersion Include="TouchSocket" Version="4.0.0-beta.140" />
<PackageReference Include="TouchSocket" />
paket add TouchSocket --version 4.0.0-beta.140
#r "nuget: TouchSocket, 4.0.0-beta.140"
#:package TouchSocket@4.0.0-beta.140
#addin nuget:?package=TouchSocket&version=4.0.0-beta.140&prerelease
#tool nuget:?package=TouchSocket&version=4.0.0-beta.140&prerelease
TouchSocket
简介
TouchSocket 是 .Net(包括 C#、VB.Net、F#)的一个整合性的 socket 网络通信框架。它包含了 TCP、UDP、SSL 等一系列的通信模块,能够一键式解决 TCP 黏分包问题、UDP 大数据包分片组合问题等。使用协议模板,可快速实现「固定包头」、「固定长度」、「区间字符」等一系列的数据报文解析。
功能特性
- 多协议支持:支持 TCP、UDP、SSL 等多种通信协议。
- 问题解决:一键解决 TCP 黏分包问题和 UDP 大数据包分片组合问题。
- 协议模板:提供协议模板,可快速实现多种数据报文解析。
支持的目标框架
- net462
- net472
- net481
- netstandard2.0
- netstandard2.1
- net6.0
- net9.0
- net8.0
使用方法
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. 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. |
-
.NETFramework 4.6.2
- TouchSocket.Core (>= 4.0.0-beta.140)
-
.NETStandard 2.0
- TouchSocket.Core (>= 4.0.0-beta.140)
-
.NETStandard 2.1
- TouchSocket.Core (>= 4.0.0-beta.140)
-
net6.0
- TouchSocket.Core (>= 4.0.0-beta.140)
-
net8.0
- TouchSocket.Core (>= 4.0.0-beta.140)
-
net9.0
- TouchSocket.Core (>= 4.0.0-beta.140)
NuGet packages (22)
Showing the top 5 NuGet packages that depend on TouchSocket:
| Package | Downloads |
|---|---|
|
ThingsGateway.Foundation
工业设备通讯协议-基础类库 |
|
|
TouchSocket.SerialPorts
这是.Net(包括 C# 、VB.Net、F#)的一个整合性的串口通信框架。包含了串口连接、断开等一系列的通信事务。同时能一键式解决数据黏分包问题。使用协议模板,可快速实现「固定包头」、「固定长度」、「区间字符」等一系列的数据报文解析。 说明文档:https://touchsocket.net/ |
|
|
TouchSocket.Http
这是一个基于Http1.1协议的组件库。它能提供Http服务器、客户端、以及WebSocket组件。功能上支持大文件下载、上传、以及多线程下载和断点续传,小文件form上传,WebApi声明和执行。所提供的Http客户端是基于连接的,可以捕获连接和断开连接等消息。 说明文档:https://touchsocket.net/ |
|
|
JGSteel.ZZ.MES.Core
Package Description |
|
|
TouchSocketPro
【专业版】这是一个轻量级的、支持插件的综合网络通信库。基础通信功能包含Tcp、Udp、Ssl等。。 【Enterprise】This is a lightweight, plug-in - enabled comprehensive network communication library. Basic communication functions include Tcp, Udp, Ssl, Rpc。 说明文档:https://touchsocket.net/ |
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on TouchSocket:
| Repository | Stars |
|---|---|
|
ThingsGateway/ThingsGateway
ThingsGateway is a cross-platform, high-performance gateway for edge data acquisition and IoT connectivity. Developed with .NET 8, it offers a suite of powerful tools, including advanced PLC communication libraries and debugging software.
|
|
|
dorisoy/Dorisoy.Pan
Dorisoy.Pan 是基于.net core8 的跨平台文档管理系统,使用 MS SQL 2012 / MySql8.0(或更高版本)后端数据库,您可以在 Windows、Linux 或 Mac 上运行它,项目中的所有方法都是异步的,支持令牌基身份验证,项目体系结构遵循著名的软件模式和最佳安全实践。源代码是完全可定制的,热插拔且清晰的体系结构,使开发定制功能和遵循任何业务需求变得容易。 系统使用最新的 Microsoft 技术,高性能稳定性和安全性
|
|
|
mirbeta/OpenMir2
Legend of Mir 2 Game server
|
|
|
lindexi/lindexi_gd
博客用到的代码
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0-rc.5 | 575 | 10/26/2025 |
| 4.0.0-rc.2 | 103 | 10/24/2025 |
| 4.0.0-rc.1 | 773 | 10/22/2025 |
| 4.0.0-beta.140 | 8,789 | 10/18/2025 |
| 4.0.0-beta.120 | 7,959 | 10/12/2025 |
| 4.0.0-beta.96 | 5,627 | 10/5/2025 |
| 4.0.0-beta.80 | 2,988 | 9/28/2025 |
| 4.0.0-beta.70 | 3,779 | 9/26/2025 |
| 4.0.0-beta.57 | 9,847 | 9/21/2025 |
| 4.0.0-beta.28 | 2,509 | 9/17/2025 |
| 4.0.0-beta.27 | 5,074 | 9/11/2025 |
| 4.0.0-beta.25 | 4,089 | 9/7/2025 |
| 4.0.0-beta.13 | 1,828 | 9/4/2025 |
| 4.0.0-beta.6 | 1,295 | 9/1/2025 |
| 3.1.19 | 411 | 10/25/2025 |
| 3.1.18 | 1,633 | 9/27/2025 |
| 3.1.17 | 1,707 | 9/9/2025 |
| 3.1.16 | 1,623 | 8/21/2025 |
| 3.1.15 | 1,815 | 8/3/2025 |
| 3.1.14 | 6,907 | 7/20/2025 |
| 3.1.13 | 6,431 | 7/14/2025 |
| 3.1.12 | 4,192 | 7/8/2025 |
| 3.1.11 | 22,554 | 6/24/2025 |
| 3.1.10 | 3,953 | 6/23/2025 |
| 3.1.9 | 2,502 | 6/22/2025 |
| 3.1.8 | 10,399 | 6/15/2025 |
| 3.1.7 | 15,737 | 6/8/2025 |
| 3.1.6 | 7,559 | 6/2/2025 |
| 3.1.5 | 16,273 | 5/24/2025 |
| 3.1.4 | 7,410 | 5/20/2025 |
| 3.1.3 | 4,922 | 5/18/2025 |
| 3.1.2 | 7,570 | 5/11/2025 |
| 3.1.1 | 7,264 | 4/29/2025 |
| 3.1.0 | 5,622 | 4/26/2025 |
| 3.0.26 | 4,594 | 4/20/2025 |
| 3.0.25 | 7,165 | 4/12/2025 |
| 3.0.24 | 7,519 | 4/7/2025 |
| 3.0.23 | 2,909 | 4/6/2025 |
| 3.0.20 | 10,042 | 3/30/2025 |
| 3.0.19 | 14,158 | 3/23/2025 |
| 3.0.18 | 10,647 | 3/16/2025 |
| 3.0.17 | 4,958 | 3/12/2025 |
| 3.0.16 | 5,176 | 3/9/2025 |
| 3.0.15 | 14,074 | 3/2/2025 |
| 3.0.14 | 16,853 | 2/15/2025 |
| 3.0.13 | 12,943 | 1/27/2025 |
| 3.0.12 | 11,109 | 1/19/2025 |
| 3.0.11 | 1,368 | 1/12/2025 |
| 3.0.10 | 3,316 | 1/5/2025 |
| 3.0.9 | 7,369 | 12/22/2024 |
| 3.0.8 | 5,763 | 12/15/2024 |
| 3.0.7 | 5,153 | 12/8/2024 |
| 3.0.6 | 4,186 | 12/1/2024 |
| 3.0.4 | 3,171 | 11/24/2024 |
| 3.0.3 | 4,915 | 11/17/2024 |
| 3.0.1 | 1,803 | 11/14/2024 |
| 3.0.0 | 1,993 | 11/13/2024 |
| 2.1.10 | 6,609 | 10/25/2024 |
| 2.1.0 | 1,788 | 9/15/2024 |
| 2.0.18 | 1,729 | 9/10/2024 |
| 2.0.17 | 2,703 | 8/30/2024 |
| 2.0.16 | 1,989 | 8/19/2024 |
| 2.0.15 | 1,845 | 8/9/2024 |
| 2.0.14 | 3,083 | 7/24/2024 |
| 2.0.12 | 1,421 | 7/17/2024 |
| 2.0.11 | 1,470 | 7/12/2024 |
| 2.0.10 | 4,672 | 5/31/2024 |
| 2.0.3 | 7,431 | 4/14/2024 |
| 2.0.0 | 4,128 | 3/9/2024 |
| 1.3.9 | 15,418 | 7/12/2023 |
| 1.3.0 | 25,899 | 3/1/2023 |
| 1.2.18 | 1,772 | 2/27/2023 |
| 1.1.1 | 1,954 | 1/13/2023 |
| 1.0.1 | 1,816 | 1/9/2023 |
| 1.0.0 | 2,582 | 12/31/2022 |
| 0.7.7 | 2,833 | 12/3/2022 |
| 0.7.4 | 4,004 | 9/30/2022 |
| 0.7.2 | 4,625 | 9/25/2022 |
| 0.6.2 | 2,119 | 9/14/2022 |
| 0.5.4 | 1,665 | 9/7/2022 |
| 0.4.5 | 1,967 | 8/24/2022 |
| 0.3.5 | 1,970 | 8/12/2022 |
| 0.2.4 | 1,687 | 7/30/2022 |
| 0.1.4 | 1,964 | 7/19/2022 |