Altruist.Protocol
0.10.1-beta
dotnet add package Altruist.Protocol --version 0.10.1-beta
NuGet\Install-Package Altruist.Protocol -Version 0.10.1-beta
<PackageReference Include="Altruist.Protocol" Version="0.10.1-beta" />
<PackageVersion Include="Altruist.Protocol" Version="0.10.1-beta" />
<PackageReference Include="Altruist.Protocol" />
paket add Altruist.Protocol --version 0.10.1-beta
#r "nuget: Altruist.Protocol, 0.10.1-beta"
#:package Altruist.Protocol@0.10.1-beta
#addin nuget:?package=Altruist.Protocol&version=0.10.1-beta&prerelease
#tool nuget:?package=Altruist.Protocol&version=0.10.1-beta&prerelease
Altruist.Protocol
Wire-protocol primitives for the Altruist framework. Shared by the server (Altruist) and client (Altruist.Client) packages so the on-the-wire shape has exactly one source of truth.
What's in here
| Type | Purpose |
|---|---|
MessageEnvelope |
The fixarray(3) [MessageCode, Header, Message] shape every server→client packet ships in. |
PacketHeader |
Routing metadata (timestamp, sender, receiver). |
IPacketBase |
Interface every packet implements; declares uint MessageCode { get; set; }. |
IPacket / ITypedModel |
Marker interfaces above IPacketBase. |
PacketCodes |
Reserved framework message codes (Sync = 3, Altruist = 4, etc.). User packets start at 1000+. |
PacketHeaders |
Static helper exposing PacketHeaders.Broadcast. |
PacketBaseFormatter |
MessagePack formatter that handles polymorphic IPacketBase serialization (used by Core's typeless paths). |
Why a separate package
Three implementations used to define the same wire shape:
- The server's
Altruist(Core) — for outboundMessageEnvelopeencoding - The test harness's
Altruist.Testing/Clients/— for integration-test clients - The Unity client's
PacketRouter.cs— hand-rolled MessagePack skip parser
When any one drifted, packets vanished silently in production. Centralising the wire types here lets the server, the test clients, and the Unity client all bind against the same DLL.
Target frameworks
netstandard2.1 and net9.0. The first is the broadest portable contract (Unity Mono / IL2CPP, Godot, Mono, Blazor, .NET Framework 4.8 via shims); the second lets server-side consumers use it natively.
AOT
The MessagePack-decorated structs (MessageEnvelope, PacketHeader) work with reflection-emit on Mono / .NET. For stripped runtimes (IL2CPP, NativeAOT, Blazor AOT), MessagePack source-generated formatters can be added — see the MessagePack documentation for mpc / MessagePack.Generator setup.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. 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. 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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- MessagePack (>= 3.1.10)
- System.Text.Json (>= 9.0.4)
-
net9.0
- MessagePack (>= 3.1.10)
- System.Text.Json (>= 9.0.4)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Altruist.Protocol:
| Package | Downloads |
|---|---|
|
Altruist
Core module for Altruist framework. |
|
|
Altruist.Client
Client framework for the Altruist wire protocol — TCP, UDP, WebSocket transports with the same MessagePack envelope encoding the server uses. AOT-friendly: the receive path byte-skips the envelope and only deserializes the inner packet as a known concrete type. Drop-in DLL for Unity, Godot, Blazor, or any .NET client. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.10.1-beta | 0 | 11/23/2026 |