NalchiSharp.Gns.Posix32 0.1.0-alpha.6

This is a prerelease version of NalchiSharp.Gns.Posix32.
dotnet add package NalchiSharp.Gns.Posix32 --version 0.1.0-alpha.6
                    
NuGet\Install-Package NalchiSharp.Gns.Posix32 -Version 0.1.0-alpha.6
                    
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="NalchiSharp.Gns.Posix32" Version="0.1.0-alpha.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NalchiSharp.Gns.Posix32" Version="0.1.0-alpha.6" />
                    
Directory.Packages.props
<PackageReference Include="NalchiSharp.Gns.Posix32" />
                    
Project file
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 NalchiSharp.Gns.Posix32 --version 0.1.0-alpha.6
                    
#r "nuget: NalchiSharp.Gns.Posix32, 0.1.0-alpha.6"
                    
#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.
#addin nuget:?package=NalchiSharp.Gns.Posix32&version=0.1.0-alpha.6&prerelease
                    
Install NalchiSharp.Gns.Posix32 as a Cake Addin
#tool nuget:?package=NalchiSharp.Gns.Posix32&version=0.1.0-alpha.6&prerelease
                    
Install NalchiSharp.Gns.Posix32 as a Cake Tool

NalchiSharp

NalchiSharp is a C# binding for the nalchi, which aims to provide utilities for efficient message sending over ValveSoftware/GameNetworkingSockets.

Documentation

As this is a direct binding of the nalchi, you can refer to the nalchi API reference for more info.

There are some minor differences:

  • nalchi is written in C++, so it uses snake_case mostly, while NalchiSharp uses PascalCase & camelCase.
  • In NalchiSharp, functions in nalchi::socket_extension is implemented as the extension methods of GnsSharp.ISteamNetworkingSockets

Integrate

There are 8 different nuget packages available for different backends & platforms.

dotnet add package NalchiSharp.Gns.Win64 --prerelease           # Open source GNS for Windows 64-bit
dotnet add package NalchiSharp.Gns.Win32 --prerelease           # Open source GNS for Windows 32-bit
dotnet add package NalchiSharp.Gns.Posix64 --prerelease         # Open source GNS for POSIX 64-bit
dotnet add package NalchiSharp.Gns.Posix32 --prerelease         # Open source GNS for POSIX 32-bit
dotnet add package NalchiSharp.Steamworks.Win64 --prerelease    # Steamworks SDK for Windows 64-bit
dotnet add package NalchiSharp.Steamworks.Win32 --prerelease    # Steamworks SDK for Windows 32-bit
dotnet add package NalchiSharp.Steamworks.Posix64 --prerelease  # Steamworks SDK for POSIX 64-bit
dotnet add package NalchiSharp.Steamworks.Posix32 --prerelease  # Steamworks SDK for POSIX 32-bit

This is because GNS uses different struct pack size for each platform, and size_t is different between 64/32 bits.

Where's the native libraries?

I don't provide them here, for the same reason as in GnsSharp.

So, bring your own native dll/dylib/so files:

Can you provide the pre-built native libraries?

You can download the pre-built native libraries in nalchi repository.
Download the one for your platform, that ends with -Shared.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.0-alpha.6 0 4/7/2025
0.1.0-alpha.5 97 3/30/2025
0.1.0-alpha.4 84 3/28/2025
0.1.0-alpha.3 82 3/28/2025
0.1.0-alpha.2 82 3/28/2025
0.1.0-alpha.1 95 3/27/2025