CodeWF.Toolkit.NetWrapper
1.1.10
dotnet add package CodeWF.Toolkit.NetWrapper --version 1.1.10
NuGet\Install-Package CodeWF.Toolkit.NetWrapper -Version 1.1.10
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeWF.Toolkit.NetWrapper" Version="1.1.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeWF.Toolkit.NetWrapper" Version="1.1.10" />
<PackageReference Include="CodeWF.Toolkit.NetWrapper" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeWF.Toolkit.NetWrapper --version 1.1.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CodeWF.Toolkit.NetWrapper, 1.1.10"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodeWF.Toolkit.NetWrapper@1.1.10
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeWF.Toolkit.NetWrapper&version=1.1.10
#tool nuget:?package=CodeWF.Toolkit.NetWrapper&version=1.1.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CodeWF.Toolkit.NetWrapper
TCP/UDP 通信封装与命令分发:客户端/服务端、心跳、断线重连,内置远程文件系统与断点续传能力。TCP/UDP helpers and command dispatching with built-in remote file system and resumable file transfer.
安装
dotnet add package CodeWF.Toolkit.NetWrapper
依赖本仓 CodeWF.Toolkit.NetWeaver、CodeWF.Toolkit.EventBus、CodeWF.Toolkit.Logging、CodeWF.Toolkit.Lang(随包自动安装);目标框架 net10.0。
快速使用
using CodeWF.Toolkit.NetWrapper.Helpers;
var server = new TcpSocketServer();
await server.StartAsync("demo-server", "127.0.0.1", 39561);
var client = new TcpSocketClient();
await client.ConnectAsync("demo-server", "127.0.0.1", 39561);
await client.SendCommandAsync(packet);
| 组件 | 说明 |
|---|---|
TcpSocketServer / TcpSocketClient |
TCP 服务端与客户端 |
UdpSocketServer / UdpSocketClient |
UDP 收发 |
SocketCommand 系 |
命令分发:客户端上线/断开、错误等,配合 EventBus 订阅 |
Heartbeat |
心跳保活模型 |
| FileSystem 目录 | 远程文件系统:浏览/建目录/删除/上传/下载/分块 ACK/断点续传 |
注意事项
- 文件传输涉及大端序分块与校验,跨版本互联请保持两端包版本一致。
- 数据包模型与序列化见 CodeWF.Toolkit.NetWeaver。
文档
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- CodeWF.Toolkit.EventBus (>= 1.1.10)
- CodeWF.Toolkit.Lang (>= 1.1.10)
- CodeWF.Toolkit.Logging (>= 1.1.10)
- CodeWF.Toolkit.NetWeaver (>= 1.1.10)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 11.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on CodeWF.Toolkit.NetWrapper:
| Package | Downloads |
|---|---|
|
CodeWF.Toolkit.EventBus.Socket
基于 TCP 的分布式事件总线:Pub/Sub、Query/Response、心跳保活、断线重连与离线消息补发,不依赖第三方消息队列。Distributed event bus over TCP with heartbeat, reconnect and offline replay, without third-party MQ. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.10 | 50 | 11/20/2026 |
| 1.1.9 | 94 | 11/16/2026 |
| 1.1.8 | 100 | 11/16/2026 |
| 1.1.7 | 91 | 11/16/2026 |
| 1.1.6 | 76 | 11/8/2026 |
| 1.1.5 | 66 | 11/8/2026 |
| 1.1.4 | 57 | 11/8/2026 |
| 1.1.3 | 70 | 11/8/2026 |
| 1.1.2 | 120 | 11/1/2026 |
| 1.1.1 | 106 | 10/26/2026 |
| 1.1.0 | 138 | 10/22/2026 |
| 1.1.0-alpha.1 | 73 | 10/21/2026 |
| 1.0.0.27 | 110 | 10/19/2026 |
| 1.0.0.26 | 111 | 10/16/2026 |
| 1.0.0.25 | 107 | 10/16/2026 |
| 1.0.0.24 | 120 | 10/15/2026 |
| 1.0.0.23 | 122 | 10/15/2026 |
| 1.0.0.22 | 107 | 10/15/2026 |
| 1.0.0.20 | 107 | 10/15/2026 |
| 1.0.0.19 | 110 | 10/15/2026 |
Loading failed