IPXRelayDotNet 1.1.0

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

// Install IPXRelayDotNet as a Cake Tool
#tool nuget:?package=IPXRelayDotNet&version=1.1.0

IPXRelayDotNet

IPXRelayDotNet is a .NET library to relay UDP-encapsulated IPX packets from DOSBox to other connected DOSBox clients. It can replace the need for one client to act as the server. The library utilizes asynchronous sockets, and thus .NET 7 is required.

Quick Start

Implementation is easy. Included in this repository is the project IPXRelay.Server that is a very basic relay server. The most minimal usage of the library in a console application may look like this:

using IPXRelayDotNet;
...
using (var relay = new IPXRelay())
{
	relay.StartAsync().Wait();
}

This will start the relay using a default port of 213.

Configurable Options

The only option that really might need to be configured with the relay is the port in which it will listen. This can be customized when setting up the relay:

using IPXRelayDotNet;
...
var port = 33213;
using (var relay = new IPXRelay(port))
{
	relay.StartAsync().Wait();
}

Logging

Some basic logging has been implemented using the abstraction Microsoft.Extensions.Logging so it can be used with loggers such as nlog or Serilog.

Logging can be manually disabled in cases where dependency injection may get in the way by using the method IPXRelay.DisableLogging();

Event Handlers

Event handlers exist for the following:

  • OnClientConnected: Fires whenever a client connects
  • OnReceivePacketError: Fires when an exception occurs while trying to receive a packet
  • OnReceivePacket: Fires when a packet has been received and deserialized into an IPXPacket
  • OnSendPacketHandler: Fires after a packet has been sent to a client
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
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 (1)

Showing the top 1 popular GitHub repositories that depend on IPXRelayDotNet:

Repository Stars
LANCommander/LANCommander
Version Downloads Last updated
1.1.0 283 1/7/2024
1.0.0 312 9/9/2023