TCPMaid 2.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package TCPMaid --version 2.3.0
                    
NuGet\Install-Package TCPMaid -Version 2.3.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="TCPMaid" Version="2.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TCPMaid" Version="2.3.0" />
                    
Directory.Packages.props
<PackageReference Include="TCPMaid" />
                    
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 TCPMaid --version 2.3.0
                    
#r "nuget: TCPMaid, 2.3.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 TCPMaid@2.3.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=TCPMaid&version=2.3.0
                    
Install as a Cake Addin
#tool nuget:?package=TCPMaid&version=2.3.0
                    
Install as a Cake Tool

Icon

TCPMaid

NuGet

An easy, powerful and lightweight TCP client/server in C#.

TCPMaid makes it easy to setup a robust client & server, send messages and requests, and provide your own SSL certificate.

Features

  • Easy client & server setup
  • Supports SSL encryption and certificates
  • Automatically serialises messages
  • Automatically fragments large messages
  • Supports requests and responses
  • Supports IPv4 and IPv6

Dependencies

Example

public static void Server() {
    // Start server on port 5000
    ServerMaid Server = new();
    Server.Start(5000);

    // Listen to events
    Server.OnConnect += OnConnect;
    Server.OnReceive += OnReceive;

    // Events
    void OnConnect(Channel Client) {
        Console.WriteLine("Hi, client!");
    }
    void OnReceive(Channel Client, Message Message) {
        if (Message is ExampleMessage ExampleMessage) {
            Console.WriteLine($"Received '{ExampleMessage.ExampleText}' from client!");
        }
    }
}
public static async void Client() {
    // Connect client to server
    ClientMaid Client = new();
    await Client.ConnectAsync("localhost", 5000);

    // Say hello to server
    await Client.Channel!.SendAsync(new ExampleMessage("hello server!"));
}
[MemoryPackable]
public partial class ExampleMessage(string ExampleText) : Message {
    public readonly string ExampleText = ExampleText;
}
Output
Hi, client!
Received 'hello server!' from client!
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  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 is compatible.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
7.0.0 145 2/17/2025
6.0.0 103 1/27/2025
5.0.0 97 1/25/2025
4.0.0 94 1/25/2025
3.0.0 117 12/7/2024
2.4.1 164 4/13/2024
2.4.0 127 3/31/2024
2.3.0 123 3/30/2024
2.2.0 133 3/29/2024
2.1.1 146 3/17/2024
2.1.0 146 3/7/2024
2.0.4 150 3/3/2024
1.0.7 135 2/22/2024
1.0.6 146 2/20/2024
1.0.5 165 2/18/2024 1.0.5 is deprecated because it has critical bugs.
1.0.4 165 2/17/2024 1.0.4 is deprecated because it has critical bugs.
1.0.3 157 2/7/2024 1.0.3 is deprecated because it has critical bugs.
1.0.2 150 2/5/2024 1.0.2 is deprecated because it has critical bugs.
1.0.1 152 1/22/2024 1.0.1 is deprecated because it has critical bugs.