XmobiTea.ProtonNetClient
1.0.4
dotnet add package XmobiTea.ProtonNetClient --version 1.0.4
NuGet\Install-Package XmobiTea.ProtonNetClient -Version 1.0.4
<PackageReference Include="XmobiTea.ProtonNetClient" Version="1.0.4" />
paket add XmobiTea.ProtonNetClient --version 1.0.4
#r "nuget: XmobiTea.ProtonNetClient, 1.0.4"
// Install XmobiTea.ProtonNetClient as a Cake Addin #addin nuget:?package=XmobiTea.ProtonNetClient&version=1.0.4 // Install XmobiTea.ProtonNetClient as a Cake Tool #tool nuget:?package=XmobiTea.ProtonNetClient&version=1.0.4
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:
- Fork this repository.
- Create a new branch for your feature or bugfix (
git checkout -b feature-name
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-name
). - 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 | Versions 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. |
-
.NETCoreApp 3.1
- XmobiTea.ProtonNetCommon (>= 1.0.4)
-
.NETFramework 4.6
- XmobiTea.ProtonNetCommon (>= 1.0.4)
-
.NETFramework 4.6.1
- XmobiTea.ProtonNetCommon (>= 1.0.4)
-
.NETFramework 4.6.2
- XmobiTea.ProtonNetCommon (>= 1.0.4)
-
.NETFramework 4.7
- XmobiTea.ProtonNetCommon (>= 1.0.4)
-
.NETFramework 4.7.1
- XmobiTea.ProtonNetCommon (>= 1.0.4)
-
.NETFramework 4.7.2
- XmobiTea.ProtonNetCommon (>= 1.0.4)
-
.NETFramework 4.8
- XmobiTea.ProtonNetCommon (>= 1.0.4)
-
.NETFramework 4.8.1
- XmobiTea.ProtonNetCommon (>= 1.0.4)
-
.NETStandard 2.0
- XmobiTea.ProtonNetCommon (>= 1.0.4)
-
.NETStandard 2.1
- XmobiTea.ProtonNetCommon (>= 1.0.4)
-
net6.0
- XmobiTea.ProtonNetCommon (>= 1.0.4)
-
net8.0
- XmobiTea.ProtonNetCommon (>= 1.0.4)
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.