mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-07 00:13:49 +00:00
28 lines
622 B
C#
28 lines
622 B
C#
//Currently unused would like to reimplement eventually
|
|
//Currently being done in qConnectionPage.xaml.cs Scan() method
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using Zeroconf;
|
|
|
|
|
|
namespace qController
|
|
{
|
|
public class QFinder
|
|
{
|
|
public QFinder()
|
|
{
|
|
}
|
|
|
|
public async void SearchForWorkspaces()
|
|
{
|
|
|
|
IReadOnlyList<IZeroconfHost> results = await ZeroconfResolver.ResolveAsync("_qlab._udp.local.");
|
|
foreach (var result in results){
|
|
Console.WriteLine(result.IPAddress);
|
|
}
|
|
Console.WriteLine("Done");
|
|
}
|
|
}
|
|
}
|