XmobiTea.ProtonNetCommon
1.0.2
See the version list below for details.
dotnet add package XmobiTea.ProtonNetCommon --version 1.0.2
NuGet\Install-Package XmobiTea.ProtonNetCommon -Version 1.0.2
<PackageReference Include="XmobiTea.ProtonNetCommon" Version="1.0.2" />
paket add XmobiTea.ProtonNetCommon --version 1.0.2
#r "nuget: XmobiTea.ProtonNetCommon, 1.0.2"
// Install XmobiTea.ProtonNetCommon as a Cake Addin #addin nuget:?package=XmobiTea.ProtonNetCommon&version=1.0.2 // Install XmobiTea.ProtonNetCommon as a Cake Tool #tool nuget:?package=XmobiTea.ProtonNetCommon&version=1.0.2
XmobiTea.ProtonNetCommon
Project Name
XmobiTea.ProtonNetCommon
Installation Instructions
To install XmobiTea.ProtonNetCommon, follow these steps:
- Clone the repository:
git clone https://github.com/yourusername/XmobiTea.ProtonNetCommon.git
- Navigate into the project directory:
cd XmobiTea.ProtonNetCommon
- Restore the project dependencies:
dotnet restore
- Build the project:
dotnet build
Features
- Provides common utilities and helpers for networking in ProtonNet projects.
- Includes reusable components for handling HTTP requests and responses.
- Implements optimized memory management for network communication.
Usage Examples
Here are some examples of how to use XmobiTea.ProtonNetCommon:
Example 1: Creating an HTTP Response
using XmobiTea.ProtonNetCommon;
using XmobiTea.ProtonNetCommon.Types;
var response = new HttpResponse(StatusCode.OK);
response.SetContentType(".html");
response.SetBody("<html><body>Hello, World!</body></html>");
Console.WriteLine(response.BodyAsString);
Example 2: Using TcpServerOptions
using XmobiTea.ProtonNetServer.Options;
var options = new TcpServerOptions
{
AcceptorBacklog = 2048,
KeepAlive = true,
NoDelay = true
};
Console.WriteLine($"Backlog: {options.AcceptorBacklog}, KeepAlive: {options.KeepAlive}, NoDelay: {options.NoDelay}");
Supported Data Types
string
for text data, headers, and protocol.byte[]
for raw data buffers and network communication.
Extensibility
- Extend
HttpResponse
to handle additional HTTP status codes or headers. - Customize
TcpServerOptions
andUdpServerOptions
for specific network configurations. - Implement additional helper methods or utilities as needed.
Contributing Guidelines
- Fork the repository.
- Create a feature branch:
git checkout -b feature/new-feature
- Commit your changes:
git commit -am 'Add new feature'
- Push to the branch:
git push origin feature/new-feature
- Open a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgments
- Inspired by common networking patterns and open-source libraries.
- Thanks to the community for their contributions and feedback.
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
- No dependencies.
-
.NETFramework 4.6
- No dependencies.
-
.NETFramework 4.6.1
- No dependencies.
-
.NETFramework 4.6.2
- No dependencies.
-
.NETFramework 4.7
- No dependencies.
-
.NETFramework 4.7.1
- No dependencies.
-
.NETFramework 4.7.2
- No dependencies.
-
.NETFramework 4.8
- No dependencies.
-
.NETFramework 4.8.1
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
.NETStandard 2.1
- No dependencies.
-
net6.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on XmobiTea.ProtonNetCommon:
Package | Downloads |
---|---|
XmobiTea.ProtonNetServer
XmobiTea.ProtonNetServer is core Proton Net Server. |
|
XmobiTea.ProtonNet.Server
XmobiTea.ProtonNet.Server is core of both SocketServer and WebApiServer. |
|
XmobiTea.ProtonNetClient
XmobiTea.ProtonNetClient is core Proton Net Client. |
|
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.