Exemple #1
0
 public static bool Ping(string host, int port, out TimeSpan elapsed)
 {
     return(NetUtility.Ping(host, port, TimeSpan.MaxValue, out elapsed));
 }
Exemple #2
0
        public static bool Ping(string host, int port, TimeSpan timeout)
        {
            TimeSpan timeSpan;

            return(NetUtility.Ping(host, port, timeout, out timeSpan));
        }
Exemple #3
0
 public static bool Ping(string host, int port)
 {
     return(NetUtility.Ping(host, port, TimeSpan.MaxValue));
 }