Manual camera configuration does not scale beyond a few devices. Automated discovery is needed to support deployments with 50+ cameras across heterogeneous protocols (ONVIF, mDNS, HTTP, ARP). Phase 1 introduces 5 network probe services, a stream tester, an orchestrating discovery service with IP+MAC deduplication, 11 REST endpoints, a pre-verification endpoint, 57 tests, and DI registration.
16 lines
562 B
C#
16 lines
562 B
C#
namespace Heimdall.Infrastructure.Services.Discovery;
|
|
|
|
/// <summary>
|
|
/// Port scanner — performs TCP connect scans on common camera ports
|
|
/// (554 RTSP, 80/443 HTTP, 3702 ONVIF, 8554 RTSP alt, 8899 DVRIP, etc.)
|
|
/// to determine which services are available on the target IP.
|
|
/// </summary>
|
|
public interface IPortScanService
|
|
{
|
|
/// <summary>
|
|
/// Scan common camera ports on the given IP address.
|
|
/// Returns the list of open port numbers.
|
|
/// </summary>
|
|
Task<IReadOnlyList<int>> ScanAsync(string ipAddress, CancellationToken ct = default);
|
|
}
|