Files
Heimdall/src/Heimdall.Infrastructure/Services/Discovery/IMdnsProbeService.cs
T

23 lines
709 B
C#
Raw Normal View History

namespace Heimdall.Infrastructure.Services.Discovery;
/// <summary>Result of an mDNS / HomeKit probe.</summary>
public sealed record HomeKitDeviceInfo(
string Name,
string DeviceId,
string Model,
string Category,
bool IsPaired,
int Port);
/// <summary>
/// mDNS / HomeKit Accessory Protocol probe.
/// Queries _hap._tcp.local and other camera-related mDNS service types.
/// </summary>
public interface IMdnsProbeService
{
/// <summary>
/// Probe an IP address for HomeKit / mDNS camera services.
/// Returns null if no HomeKit device is detected on this IP.
/// </summary>
Task<HomeKitDeviceInfo?> ProbeAsync(string ipAddress, CancellationToken ct = default);
}