SocketsComm 1.0.0

dotnet add package SocketsComm --version 1.0.0
                    
NuGet\Install-Package SocketsComm -Version 1.0.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="SocketsComm" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SocketsComm" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SocketsComm" />
                    
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 SocketsComm --version 1.0.0
                    
#r "nuget: SocketsComm, 1.0.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.
#:package SocketsComm@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SocketsComm&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=SocketsComm&version=1.0.0
                    
Install as a Cake Tool

SocketsComm

High-performance, zero-allocation .NET networking library with TCP (framed messaging, file transfer, SSL/TLS, heartbeat, auto-reconnect) and UDP (Listener, Peer, Broadcast). Built-in structured logging, real-time metrics, and GZip compression.

Key Features

  • Zero-Allocation I/O — ArrayPool-based receive/send loops eliminate GC pressure under high throughput
  • TCP Framed Protocol — Length-prefixed messaging guaranteeing message integrity with async event-driven architecture
  • File Transfer Engine — Automatic chunking, optional GZip compression, configurable timeouts, progress events, and filename sanitization (path traversal protection)
  • SSL/TLS Security — Full certificate validation with configurable token-based authentication handshake
  • Heartbeat & Auto-Reconnect — Active Ping/Pong dead-connection detection and automatic client reconnection
  • Fault-Tolerant Broadcast — One slow client never blocks others
  • UDP Support — High-performance Listener and Peer with broadcast and ephemeral port support
  • Structured Logging — Pluggable ISocketLogger interface (Trace/Info/Warning/Error) with built-in Debug, Console, and No-op implementations. Compatible with NLog, Serilog, or any custom framework
  • Real-Time Metrics — Atomic counters (bytes/messages sent/received) queryable from any thread with zero overhead
  • Async Server ShutdownStopServerAsync() prevents deadlocks in WinForms/WPF contexts

Targets

.NET 6.0 / 7.0 / 8.0 / 9.0 / 10.0 | .NET Standard 2.1+

Tags

tcp udp sockets networking async file-transfer ssl tls heartbeat reconnect high-performance zero-allocation compression logging

Documentation

Full guides with VB.NET and C# examples are available in the GitHub repository.


Development by SysProfile SRL

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

Version Downloads Last Updated
1.0.0 115 3/1/2026