Packety 0.0.1

dotnet add package Packety --version 0.0.1                
NuGet\Install-Package Packety -Version 0.0.1                
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="Packety" Version="0.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Packety --version 0.0.1                
#r "nuget: Packety, 0.0.1"                
#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 Packety as a Cake Addin
#addin nuget:?package=Packety&version=0.0.1

// Install Packety as a Cake Tool
#tool nuget:?package=Packety&version=0.0.1                

Packety

About

Packety is a network packet manager for Steamworks.NET.
It makes sending, and transmitting network packets very dependency lite.

Usage

Packet Definitions

Packet definitions should be added to an instance of NetworkMessagePackager, which will allow for different objects to be serialized and deserialized to network packets.

Usage

var networkMessagePackager = new NetworkMessagePackager();
networkMessagePackager.AddDefinition<SomeModel>();

The instance of NetworkMessagePackager can then be used by calling the Package method with a defined type: networkMessagePackager.Package(instanceOfSomeModel);

NetworkManager

A basic implementation of the INetworkManager interface has been provided with this library.
The SteamNetworkManager will help for fast set-up of server-client networking.

Usage

An instance of a INetworkManager implementation must be defined and then used for managing the retrieval and sending of network packets.

var networkManager = new SteamNetworkManager(networkMessagePackager);

It must then be updated to retrieve all network packets using:

networkManager.Update();

PacketConsumer

The base class PacketConsumer must be inherited from in order to direct packets. For each packet registered with the NetworkMessagePackager, a corresponding PacketConsumer can be created to separate logic from other areas of the code-base.

Usage

public class MyPacketConsumer : PacketConsumer<SomeModel> {
protected override void ConsumePacket(Connection connection, SomeModel packet) {
// Some logic here for consuming the packet.
}
}

NetworkClientListener and NetworkServerListener

The network client/server listener is used to hold PacketConsumers, and direct packets to the correct consumer.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.1 334 2/2/2021