mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-04 23:17:56 +00:00
31a10d9b16
* QWorkspaceInfo.cs: * QParser.cs: * WorkspacePrompt.cs: * QEventArgs.cs: Remove redundant QWorkspaceInfo class * QRecentWorkspaceInfo.cs: Add bundle info class for recent workspace info * ControlPage.xaml.cs: * QBrowserPage.xaml.cs: * QButton.cs: * qConnectionPage.xaml.cs: * QLevelsCell.cs: * QCueListCell.cs: * QInstanceCell.cs: * QControlsBlock.cs: * ShadowButton.cs: * QLevelsButton.cs: * QSelectedCueCell.cs: Move Cells classess under UI * AppDelegate.cs: * packages.config: * MainActivity.cs: * packages.config: * qController.iOS.csproj: * qController.Droid.csproj: * qController.csproj: Update dependencies * App.xaml.cs: Add AppAction code for recent workspace * QStorage.cs: Add recent workspace to persistent storage * QCueGrid.cs: Start on interactivity with cue list grid * QCueViewModel.cs: debug for children updated start on reactive QCueGrid * WorkspacePage.xaml.cs: Start handling a "no selected cue" state and recent workspace * QInstance.cs: * IPHelper.cs: move reachable check to IPHelper - TODO: implement
36 lines
962 B
C#
36 lines
962 B
C#
//IP Address verification
|
|
//IMPLEMENT A ISREACHABLE METHOD TO BE ABLE TO DISPLAY ONLINE QINSTANCES
|
|
using System.Net;
|
|
|
|
namespace qController.Communication
|
|
{
|
|
public class IPHelper
|
|
{
|
|
public IPHelper()
|
|
{
|
|
}
|
|
|
|
public static bool IsValidAddress(string ipString){
|
|
if ((ipString.Split('.').Length - 1) != 3) return false;
|
|
IPAddress address;
|
|
return IPAddress.TryParse(ipString, out address);
|
|
}
|
|
|
|
public static bool IsReachable(string ipString)
|
|
{
|
|
/*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;
|
|
}
|
|
}
|
|
}
|