mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-05 07:27:56 +00:00
42 lines
960 B
C#
42 lines
960 B
C#
using System;
|
|
using System.Net;
|
|
using System.Net.NetworkInformation;
|
|
using Xamarin.Forms;
|
|
using SharpOSC;
|
|
using System.Threading;
|
|
|
|
namespace qController
|
|
{
|
|
|
|
|
|
public class QInstance : ViewCell
|
|
{
|
|
public string name { get; set; }
|
|
public string address { get; set; }
|
|
public QInstance()
|
|
{
|
|
|
|
}
|
|
public QInstance(string tName, string tAddress)
|
|
{
|
|
name = tName;
|
|
address = tAddress;
|
|
}
|
|
public bool IsReachable()
|
|
{
|
|
/*try
|
|
{
|
|
IPAddress instanceIP = IPAddress.Parse(address);
|
|
Ping p = new System.Net.NetworkInformation.Ping();
|
|
PingReply reply = p.Send(instanceIP);
|
|
return reply.Status == IPStatus.Success ? true : false;
|
|
}
|
|
catch
|
|
{
|
|
return false;
|
|
}*/
|
|
return true;
|
|
}
|
|
}
|
|
|
|
} |