XmobiTea.ProtonNet.Networking
1.0.4
dotnet add package XmobiTea.ProtonNet.Networking --version 1.0.4
NuGet\Install-Package XmobiTea.ProtonNet.Networking -Version 1.0.4
<PackageReference Include="XmobiTea.ProtonNet.Networking" Version="1.0.4" />
paket add XmobiTea.ProtonNet.Networking --version 1.0.4
#r "nuget: XmobiTea.ProtonNet.Networking, 1.0.4"
// Install XmobiTea.ProtonNet.Networking as a Cake Addin #addin nuget:?package=XmobiTea.ProtonNet.Networking&version=1.0.4 // Install XmobiTea.ProtonNet.Networking as a Cake Tool #tool nuget:?package=XmobiTea.ProtonNet.Networking&version=1.0.4
XmobiTea.ProtonNet.Networking
Installation
To install the XmobiTea.ProtonNet.Networking
library, include it in your project by referencing the appropriate NuGet package or by adding the source files to your solution.
dotnet add package XmobiTea.ProtonNet.Networking
Features
- Operation Models: Supports various operation models such as
OperationRequest
,OperationResponse
,OperationEvent
,OperationPing
,OperationPong
,OperationHandshake
, andOperationDisconnect
. - Extensions: Includes extension methods for setting and manipulating operation codes, parameters, and more.
- Enums: Provides enumerations like
DisconnectReason
andSendResult
for standardized communication.
Usage
Example: Creating and Using OperationRequest
using XmobiTea.ProtonNet.Networking;
using XmobiTea.ProtonNet.Networking.Extensions;
using XmobiTea.Data;
var operationRequest = new OperationRequest()
.SetOperationCode("SampleCode")
.AddParameter("Key1", "Value1")
.AddParameter("Key2", 1234);
var operationResponse = new OperationResponse()
.SetOperationCode("SampleResponse")
.SetReturnCode(1)
.SetDebugMessage("Success");
Example: Handling Disconnections
var disconnectReason = DisconnectReason.MaxSession;
Console.WriteLine($"Disconnected due to: {disconnectReason}");
Supported Data Types
- OperationRequest: Manages the request operations with codes and parameters.
- OperationResponse: Manages the response from operations with codes, return codes, and debug messages.
- OperationEvent: Handles events with associated codes and parameters.
- Enums: Includes types like
DisconnectReason
andSendResult
for handling specific scenarios. - GNHashtable: A flexible data structure for storing parameters in key-value pairs.
Extensibility
XmobiTea.ProtonNet.Networking
is designed to be extensible. You can easily add custom operations, extend the existing models, and implement additional features by following the structure provided in the library.
Contributing
Contributions are welcome! Please follow the contribution guidelines and ensure that your code adheres to the project's coding standards.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgments
Thanks to the open-source community for providing valuable feedback and contributions that make this project better.
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.Collections.Generic (>= 1.0.4)
- XmobiTea.Data (>= 1.0.4)
-
.NETFramework 4.6
- XmobiTea.Collections.Generic (>= 1.0.4)
- XmobiTea.Data (>= 1.0.4)
-
.NETFramework 4.6.1
- XmobiTea.Collections.Generic (>= 1.0.4)
- XmobiTea.Data (>= 1.0.4)
-
.NETFramework 4.6.2
- XmobiTea.Collections.Generic (>= 1.0.4)
- XmobiTea.Data (>= 1.0.4)
-
.NETFramework 4.7
- XmobiTea.Collections.Generic (>= 1.0.4)
- XmobiTea.Data (>= 1.0.4)
-
.NETFramework 4.7.1
- XmobiTea.Collections.Generic (>= 1.0.4)
- XmobiTea.Data (>= 1.0.4)
-
.NETFramework 4.7.2
- XmobiTea.Collections.Generic (>= 1.0.4)
- XmobiTea.Data (>= 1.0.4)
-
.NETFramework 4.8
- XmobiTea.Collections.Generic (>= 1.0.4)
- XmobiTea.Data (>= 1.0.4)
-
.NETFramework 4.8.1
- XmobiTea.Collections.Generic (>= 1.0.4)
- XmobiTea.Data (>= 1.0.4)
-
.NETStandard 2.0
- XmobiTea.Collections.Generic (>= 1.0.4)
- XmobiTea.Data (>= 1.0.4)
-
.NETStandard 2.1
- XmobiTea.Collections.Generic (>= 1.0.4)
- XmobiTea.Data (>= 1.0.4)
-
net6.0
- XmobiTea.Collections.Generic (>= 1.0.4)
- XmobiTea.Data (>= 1.0.4)
-
net8.0
- XmobiTea.Collections.Generic (>= 1.0.4)
- XmobiTea.Data (>= 1.0.4)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on XmobiTea.ProtonNet.Networking:
Package | Downloads |
---|---|
XmobiTea.ProtonNet.RpcProtocol
XmobiTea.ProtonNet.RpcProtocol is responsible for encoding, decoding, and transforming XmobiTea.ProtonNet.Networking objects into the specific objects required by the server and client. This ensures seamless communication and interaction between different components within the ProtonNet framework. |
|
XmobiTea.ProtonNet.Server
XmobiTea.ProtonNet.Server is core of both SocketServer and WebApiServer. |
|
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.