uwap.TCP 2.0.1

dotnet add package uwap.TCP --version 2.0.1
                    
NuGet\Install-Package uwap.TCP -Version 2.0.1
                    
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="uwap.TCP" Version="2.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="uwap.TCP" Version="2.0.1" />
                    
Directory.Packages.props
<PackageReference Include="uwap.TCP" />
                    
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 uwap.TCP --version 2.0.1
                    
#r "nuget: uwap.TCP, 2.0.1"
                    
#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 uwap.TCP@2.0.1
                    
#: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=uwap.TCP&version=2.0.1
                    
Install as a Cake Addin
#tool nuget:?package=uwap.TCP&version=2.0.1
                    
Install as a Cake Tool

TCP library

Cross-platform .NET library written in C# that allows you to easily create server-client communication using TCP messages.

The messages consist of text only (encoded in UTF-8) and end with a line break, so if you want to send bytes or a message with line breaks, you'll have to implement escape characters or something like base64 encoding on both ends.

Website: https://uwap.org/projects/tcp

Guides: https://uwap.org/guides/tcp

Main features

  • Server listening for clients
  • Clients connecting to a server
  • Events: ConnectionReceived, ConnectionLost, MessageReceived
  • Using the .NET thread pool
  • Server dual-mode (listening on IPv4 and IPv6 at once without
  • Same connection class for server and clientstwo listener threads)
  • Locks so threads don't write to a connection at the same time
  • Automatic splitting of traffic into individual messages encoded in UTF-8 (no line breaks, see above!)
  • Extracting the IP address and port of the machine on the other end of connections

Installation

You can get the NuGet package here: uwap.TCP

You can also download the source code from GitHub and add a reference to it from your project.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.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
2.0.1 271 9/16/2023