XmobiTea.ProtonNet.Networking 1.0.0

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

// Install XmobiTea.ProtonNet.Networking as a Cake Tool
#tool nuget:?package=XmobiTea.ProtonNet.Networking&version=1.0.0                

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, and OperationDisconnect.
  • Extensions: Includes extension methods for setting and manipulating operation codes, parameters, and more.
  • Enums: Provides enumerations like DisconnectReason and SendResult 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 and SendResult 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 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 (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.