mirror of
https://github.com/LANCommander/LANCommander.Interposer.git
synced 2026-08-01 03:08:17 -04:00
- Publishes NuGet package with .NET bindings - Allows direct injection - Allows for event subscription - Adds callbacks to main Interposer DLL
22 lines
577 B
C#
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;
|
|
}
|
|
}
|
|
}
|