Nalix.Network
14.4.0
dotnet add package Nalix.Network --version 14.4.0
NuGet\Install-Package Nalix.Network -Version 14.4.0
<PackageReference Include="Nalix.Network" Version="14.4.0" />
<PackageVersion Include="Nalix.Network" Version="14.4.0" />
<PackageReference Include="Nalix.Network" />
paket add Nalix.Network --version 14.4.0
#r "nuget: Nalix.Network, 14.4.0"
#:package Nalix.Network@14.4.0
#addin nuget:?package=Nalix.Network&version=14.4.0
#tool nuget:?package=Nalix.Network&version=14.4.0
Nalix.Network
Low-level TCP, WebSocket, datagram (NDP over UDP), connection, protocol, and admission-control infrastructure for Nalix servers.
Nalix.Network owns the transport layer. It accepts sockets, creates connection objects, enforces connection guard policy, manages active connection registries, and exposes protocol hooks used by Nalix.Runtime and Nalix.Hosting.
Install
dotnet add package Nalix.Network
What It Provides
| Area | Purpose | Main types |
|---|---|---|
| TCP listeners | High-throughput asynchronous TCP accept loops | TcpListenerBase |
| Datagram listener | NDP sessions over UDP: tickets, session table, AEAD per datagram | DatagramListener, DatagramOptions |
| WebSocket listeners | Raw WebSocket listener support for browser and proxy deployments | WebSocketListenerBase |
| Connections | Active connection objects and lifecycle hooks | Connection, WebSocketConnection, DatagramConnection |
| Connection registry | Sharded active connection storage and broadcast support | ConnectionHub, ConnectionTerminator |
| Protocols | Transport-neutral protocol lifecycle base | Protocol |
| Admission control | Per-IP limits, flood protection, bans, and datagram guards | ConnectionGuard, DatagramGuard |
| Options | Socket, guard, proxy, WebSocket, and timing-wheel configuration | NetworkSocketOptions, ConnectionGuardOptions, ProxyProtocolOptions, NetworkWebSocketOptions |
Custom TCP Listener
using Nalix.Abstractions.Networking;
using Nalix.Network.Listeners.Tcp;
// Frames are handled by the protocol's frame processor (IFrameProcessor.ProcessFrame),
// so a listener subclass only supplies the port, protocol, hub and connection guard.
public sealed class CustomTcpListener(
ushort port, IProtocol protocol, IConnectionHub hub, IConnectionGuard guard)
: TcpListenerBase(port, protocol, hub, guard);
Operational Notes
- Use
ConnectionGuardandDatagramGuardfor public-facing services. - Configure trusted proxies before honoring forwarded client IP headers.
- Prefer Nalix.Hosting for application setup unless you are implementing a custom transport.
- TCP supports PROXY protocol handling; WebSocket supports forwarded HTTP headers when enabled.
Documentation
- Package guide: https://ppn.io.vn/packages/nalix-network/
- API reference: https://ppn.io.vn/api/network/
- WebSocket listener: https://ppn.io.vn/api/network/websocket-listener/
- Trusted proxy options: https://ppn.io.vn/api/options/network/trusted-proxy-options/
| 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. net11.0 is compatible. |
-
net10.0
- Nalix.Abstractions (>= 14.4.0)
- Nalix.Framework (>= 14.4.0)
-
net11.0
- Nalix.Abstractions (>= 14.4.0)
- Nalix.Framework (>= 14.4.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Nalix.Network:
| Package | Downloads |
|---|---|
|
Nalix.Hosting
Nalix.Hosting provides Microsoft-style host and builder APIs for the Nalix ecosystem. It wires configuration loading, diagnostic event bridging, packet dispatch, and TCP/UDP listener lifecycle into a familiar builder/build/start workflow for quickly bootstrapping Nalix-based servers. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 14.4.0 | 883 | 11/22/2026 |
| 14.3.10 | 120 | 11/19/2026 |
| 14.3.9 | 10,195 | 10/27/2026 |
| 14.3.8 | 629 | 10/26/2026 |
| 14.3.7 | 3,814 | 10/24/2026 |
| 14.3.6 | 116 | 10/24/2026 |
| 14.3.5 | 200 | 10/6/2026 |
| 14.3.4 | 109 | 10/6/2026 |
| 14.3.3 | 159 | 9/26/2026 |
| 14.3.2 | 119 | 9/26/2026 |
| 14.3.1 | 3,233 | 8/29/2026 |
| 14.3.0 | 691 | 8/27/2026 |
| 14.2.18 | 744 | 8/13/2026 |
| 14.2.17 | 662 | 8/11/2026 |
| 14.2.16 | 431 | 8/1/2026 |
| 14.2.15 | 169 | 7/31/2026 |
| 14.2.14 | 148 | 7/31/2026 |
| 14.2.13 | 159 | 7/31/2026 |
| 14.2.12 | 169 | 7/29/2026 |
| 14.2.11 | 137 | 7/28/2026 |
- Hardened UDP Transport: Optimized sliding window anti-replay protection and session-aware endpoint pinning.
- Admission Security Guards: Hardened ConnectionGuard and DatagramGuard for flood protection, connection limits, and IP blacklists.
- Centralized Connection Hub: Thread-safe, sharded ConnectionHub with async broadcast and connection eviction.
- Coordinated Transport Listeners: Unified TCP, UDP, and WebSocket abstract listener loops with optimized concurrent performance.