XmobiTea.ProtonNetClient 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package XmobiTea.ProtonNetClient --version 1.0.3                
NuGet\Install-Package XmobiTea.ProtonNetClient -Version 1.0.3                
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="XmobiTea.ProtonNetClient" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XmobiTea.ProtonNetClient --version 1.0.3                
#r "nuget: XmobiTea.ProtonNetClient, 1.0.3"                
#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 XmobiTea.ProtonNetClient as a Cake Addin
#addin nuget:?package=XmobiTea.ProtonNetClient&version=1.0.3

// Install XmobiTea.ProtonNetClient as a Cake Tool
#tool nuget:?package=XmobiTea.ProtonNetClient&version=1.0.3                

XmobiTea.ProtonNetClient

Overview

XmobiTea.ProtonNetClient is a powerful .NET library that provides interfaces and implementations for creating and managing TCP, UDP, HTTP, and WebSocket connections. This library is designed to support both synchronous and asynchronous connections, offering high performance for modern network applications.

Installation

You can install XmobiTea.ProtonNetClient via the NuGet Package Manager:

Install-Package XmobiTea.ProtonNetClient

Or add it directly to your .csproj file:

<PackageReference Include="XmobiTea.ProtonNetClient" Version="1.0.0" />

Features

  • TCP Client: Supports TCP connections with robust configuration options.
  • UDP Client: Manages UDP connections with multicast group join and leave capabilities.
  • HTTP Client: Simple and efficient HTTP client implementation.
  • WebSocket Client: Supports WebSocket and WebSocket Secure (WSS) connections, including handling frames like text, binary, ping/pong, and close.
  • SSL/TLS: Integrated SSL/TLS security for secure connections.

Usage

TCP Client

Initialize and connect to a TCP server:

var options = new TcpClientOptions
{
    KeepAlive = true,
    NoDelay = true
};

var tcpClient = new TcpClient("127.0.0.1", 8080, options);
tcpClient.Connect();

UDP Client

Initialize and send data via UDP:

var udpOptions = new UdpClientOptions
{
    ReuseAddress = true,
    Multicast = true
};

var udpClient = new UdpClient("224.0.0.1", 8080, udpOptions);
udpClient.Connect();
udpClient.Send(udpClient.EndPoint, Encoding.UTF8.GetBytes("Hello, World!"));

WebSocket Client

Initialize and connect to a WebSocket server:

var wsOptions = new TcpClientOptions();
var wsClient = new WsClient("ws://echo.websocket.org", 80, wsOptions);
wsClient.Connect();
wsClient.SendText(Encoding.UTF8.GetBytes("Hello WebSocket!"));

Supported Data Types

  • byte[] for binary and text payloads.
  • string for connection strings and endpoint URLs.

Extensibility

The library is designed to be extensible. You can inherit from base classes like TcpClient, UdpClient, WsClient, and HttpsClient to customize specific behaviors.

Contributing

To contribute to this project:

  1. Fork this repository.
  2. Create a new branch for your feature or bugfix (git checkout -b feature-name).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature-name).
  5. Create a Pull Request on GitHub.

License

XmobiTea.ProtonNetClient is licensed under the MIT License. See the LICENSE file for more details.

Acknowledgments

  • Thanks to the .NET community for the tools and libraries that supported the development of this project.
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 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net46 is compatible.  net461 is compatible.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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 (1)

Showing the top 1 NuGet packages that depend on XmobiTea.ProtonNetClient:

Package Downloads
XmobiTea.ProtonNet.Client

XmobiTea.ProtonNet.Client is the client-side implementation for .NET, providing the necessary tools and functionality to interact with ProtonNet services. It allows .NET applications to efficiently communicate with ProtonNet servers, facilitating seamless client-server integration.

GitHub repositories

This package is not used by any popular GitHub repositories.