StirlingLabs.sockaddr.Net.runtime.win-x64.libsa 22.5.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package StirlingLabs.sockaddr.Net.runtime.win-x64.libsa --version 22.5.0
NuGet\Install-Package StirlingLabs.sockaddr.Net.runtime.win-x64.libsa -Version 22.5.0
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="StirlingLabs.sockaddr.Net.runtime.win-x64.libsa" Version="22.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StirlingLabs.sockaddr.Net.runtime.win-x64.libsa --version 22.5.0
#r "nuget: StirlingLabs.sockaddr.Net.runtime.win-x64.libsa, 22.5.0"
#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.
// Install StirlingLabs.sockaddr.Net.runtime.win-x64.libsa as a Cake Addin
#addin nuget:?package=StirlingLabs.sockaddr.Net.runtime.win-x64.libsa&version=22.5.0

// Install StirlingLabs.sockaddr.Net.runtime.win-x64.libsa as a Cake Tool
#tool nuget:?package=StirlingLabs.sockaddr.Net.runtime.win-x64.libsa&version=22.5.0

sockaddr.Net

libsa provides cross-platform socket address bindings in C11, designed to be very portable and easy to use. This allows higher-level network code to use a single format but still communicate effectively with low-level native platform code.

sockaddr.Net provides all of libsa's functionality within .Net, avoiding additional memory allocations wherever possible. It provides an opaque sockaddr* type that is purely pointers or off-gc-heap refs, such that it can be simply cast to/from any other opaque sockaddr* type.

So addresses from any application or API that uses native bindings can be simply cast to StirlingLabs.sockaddr* and then can be manipulated and read without concern for the underlying platform format, then can simply be cast back when being passed back to the application API.

Why reinvent the wheel?

sockaddr isn't going to change once it exists on a platform, so it makes sense to just make a dedicated binding and interop library that can be used anywhere.

Usage

Configure GitHub Packages, then you can just:

dotnet add PROJECT package StirlingLabs.sockaddr.Net

or just use NuGet however you would normally.

Support

Development of this project is supported by Stirling Labs.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on StirlingLabs.sockaddr.Net.runtime.win-x64.libsa:

Package Downloads
StirlingLabs.sockaddr.Net The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Cross-platform socket addresses. Simply cast from native to StirlingLabs.sockaddr* for validation or manipulation without regard to the native format, then cast back to use in a native API.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
22.9.0 2,180 9/28/2022
22.5.4 374 5/12/2022
22.5.3 402 5/12/2022
22.5.2 403 5/9/2022
22.5.1 364 5/9/2022
22.5.0 2,795 5/6/2022