F
Franck
hello ,
I use the following method to find out if a remote computer in an
intranet is connected or not on the intranet network...
but the following is very long at least 10-11s per host
are there any other know methods
thank for your help
Franck
using System.Net;
public static void pinger(string hostname,ref bool found)
{
try
{
Dns.GetHostByName(hostname);
}
catch(System.Net.Sockets.SocketException )
{
found=false;
}
catch(System.Security.SecurityException )
{
found=true;
}
catch(Exception excep)
{
found=false;
}
found=true;
}
I use the following method to find out if a remote computer in an
intranet is connected or not on the intranet network...
but the following is very long at least 10-11s per host
are there any other know methods
thank for your help
Franck
using System.Net;
public static void pinger(string hostname,ref bool found)
{
try
{
Dns.GetHostByName(hostname);
}
catch(System.Net.Sockets.SocketException )
{
found=false;
}
catch(System.Security.SecurityException )
{
found=true;
}
catch(Exception excep)
{
found=false;
}
found=true;
}