LANCommander.Interposer/LANCommander.Interposer.NET/Events/NetworkEventArgs.cs
Pat Hartl 2318fdf611 Add .NET bindings
- Publishes NuGet package with .NET bindings
- Allows direct injection
- Allows for event subscription
- Adds callbacks to main Interposer DLL
2026-05-29 23:31:06 -05:00

22 lines
577 B
C#

using System;
namespace LANCommander.Interposer.Events
{
/// <summary>
/// Data for network connection events (connect, send/recv address discovery).
/// </summary>
public sealed class NetworkEventArgs : EventArgs
{
/// <summary>The IP address or hostname.</summary>
public string Address { get; }
/// <summary>The port number (0 if unknown).</summary>
public int Port { get; }
internal NetworkEventArgs(string address, int port)
{
Address = address;
Port = port;
}
}
}