Initial check-in of module qController

This commit is contained in:
2018-06-01 15:09:01 -05:00
commit 30e23418a6
126 changed files with 10486 additions and 0 deletions
@@ -0,0 +1,40 @@
using System;
using System.Net;
using System.Net.NetworkInformation;
using Xamarin.Forms;
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;
}
}
}