IPXRelayDotNet 1.0.0
See the version list below for details.
dotnet add package IPXRelayDotNet --version 1.0.0
NuGet\Install-Package IPXRelayDotNet -Version 1.0.0
<PackageReference Include="IPXRelayDotNet" Version="1.0.0" />
paket add IPXRelayDotNet --version 1.0.0
#r "nuget: IPXRelayDotNet, 1.0.0"
// Install IPXRelayDotNet as a Cake Addin #addin nuget:?package=IPXRelayDotNet&version=1.0.0 // Install IPXRelayDotNet as a Cake Tool #tool nuget:?package=IPXRelayDotNet&version=1.0.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 connectsOnReceivePacketError
: Fires when an exception occurs while trying to receive a packetOnReceivePacket
: Fires when a packet has been received and deserialized into anIPXPacket
OnSendPacketHandler
: Fires after a packet has been sent to a client
Product | Versions 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. |
-
net7.0
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.1)
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
|