UmbralSocket.Net
1.0.0
See the version list below for details.
dotnet add package UmbralSocket.Net --version 1.0.0
NuGet\Install-Package UmbralSocket.Net -Version 1.0.0
<PackageReference Include="UmbralSocket.Net" Version="1.0.0" />
<PackageVersion Include="UmbralSocket.Net" Version="1.0.0" />
<PackageReference Include="UmbralSocket.Net" />
paket add UmbralSocket.Net --version 1.0.0
#r "nuget: UmbralSocket.Net, 1.0.0"
#:package UmbralSocket.Net@1.0.0
#addin nuget:?package=UmbralSocket.Net&version=1.0.0
#tool nuget:?package=UmbralSocket.Net&version=1.0.0
UmbralSocket.Net
Uma biblioteca binária de comunicação ultraleve e de altíssimo desempenho via Unix Sockets ou Named Pipes para backends .NET 9 AOT. Inspirada em umbral-socket do Rust.
Exemplo rápido
using System.Text;
using UmbralSocket.Net.Unix;
var server = new UnixUmbralSocketServer();
server.RegisterHandler(0x01, async payload =>
{
var text = Encoding.UTF8.GetString(payload.ToArray());
return Encoding.UTF8.GetBytes($"SAVE:{text}");
});
var cts = new CancellationTokenSource();
_ = server.StartAsync(cts.Token);
var client = new UnixUmbralSocketClient();
var response = await client.SendAsync(0x01, Encoding.UTF8.GetBytes("hello"));
Console.WriteLine(Encoding.UTF8.GetString(response)); // SAVE:hello
cts.Cancel();
Licença
Este projeto está licenciado sob a Licença MIT.
CI/CD e Publicação
Este projeto usa GitHub Actions para automação de CI/CD com as seguintes funcionalidades:
- Build e Teste Automático: Executado em todos os PRs e pushes
- Publicação no NuGet: Automática quando uma tag de versão é criada
- Publicação no GitHub Packages: Backup da publicação
Configuração de Secrets
Para que a publicação funcione, configure os seguintes secrets no GitHub:
NUGET_API_KEY
: Sua chave de API do NuGet.orgGITHUB_TOKEN
: Automaticamente fornecido pelo GitHub
Como fazer um release
- Atualize a versão no arquivo
.csproj
- Crie uma tag:
git tag v1.0.0
- Faça push da tag:
git push origin v1.0.0
- O GitHub Actions automaticamente publicará no NuGet
Atribuição
Este projeto foi inspirado pelo umbral-socket de alan-venv, que está licenciado sob as licenças Apache-2.0 e MIT. Embora esta seja uma implementação independente para .NET, reconhecemos a inspiração e o design conceitual do projeto original em Rust.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release of UmbralSocket.Net - High-performance Unix socket and Named Pipe communication library for .NET 9 AOT.