mirror of
https://github.com/Jellyfin2Samsung/Samsung-Jellyfin-Installer.git
synced 2026-03-01 11:21:12 +03:00
19 lines
728 B
C#
19 lines
728 B
C#
using Jellyfin2Samsung.Models;
|
|
using System.Collections.Generic;
|
|
using System.Net;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Jellyfin2Samsung.Interfaces
|
|
{
|
|
public interface INetworkService
|
|
{
|
|
Task<IEnumerable<NetworkDevice>> GetLocalTizenAddresses(CancellationToken cancellationToken = default, bool virtualScan = false);
|
|
Task<NetworkDevice?> ValidateManualTizenAddress(string ip, CancellationToken cancellationToken = default);
|
|
IEnumerable<IPAddress> GetRelevantLocalIPs(bool virtualScan = false);
|
|
Task<bool> IsPortOpenAsync(string ip, int port, CancellationToken ct);
|
|
string GetLocalIPAddress();
|
|
string InvertIPAddress(string ipAddress);
|
|
}
|
|
}
|