BladeNetwork 1.0.0

dotnet add package BladeNetwork --version 1.0.0
                    
NuGet\Install-Package BladeNetwork -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="BladeNetwork" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BladeNetwork" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="BladeNetwork" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BladeNetwork --version 1.0.0
                    
#r "nuget: BladeNetwork, 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.
#:package BladeNetwork@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BladeNetwork&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=BladeNetwork&version=1.0.0
                    
Install as a Cake Tool

Blade Network.NET

Build status NuGet license

Description

This is a simple and lightweight C# asynchronous networking library. It is named after a famous SF classic, because it is as strong and reliable as replicants.

Features

  • Very simple to use !
    • Just a few instructions, explained in the documentation below.
    • Easy to add as a reference (DLL) for an external project.
  • TCP based implementation
  • Efficiency (asynchronous read & write)
  • Events raised at each reception of a message, for further processing (Observer pattern)

It works very well with Netwonsoft (https://www.newtonsoft.com/json). With this package installed, you are able to pass complex objects between server and client.

Getting started

There is a complete & well-documented example available in the Examples directory. It shows a very basic implementation of a running server and associated client.

Server-side (Example)

Initialization:

var server = new blade.Server(ip, port, MsgHandler);

Send messages:

server.Send(target, "Hello from server !");

Receive messages:

Implement the MsgHandler function : it will be called each time a message is received by the server. You can then parse it there.

Client-side (Example)

Initialization:

var client = new blade.Client(ip, port, MsgHandler);

Send messages:

client.Send("Hello from client !");

Receive messages:

Implement the MsgHandler function : it will be called each time a message is received by the server. You can then parse it there.

It's as simple as that !

Product Compatible and additional computed target framework versions.
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
1.0.0 1,451 2/28/2018