40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Remontor.Pinger
|
|
{
|
|
internal class PingResult
|
|
{
|
|
public long Ping { get; set; }
|
|
public int TimeoutPing { get; set; }
|
|
public IPAddress Ip;
|
|
public DateTime timePing;
|
|
public bool TimedOut;
|
|
public bool Succes;
|
|
public string NameOrAddress;
|
|
public PingResult(long ping, int timeoutPing, IPAddress ip, bool timedOut, bool succes, string NameOrAddress)
|
|
{
|
|
Ping = ping;
|
|
TimeoutPing = timeoutPing;
|
|
Ip = ip;
|
|
TimedOut = timedOut;
|
|
Succes = succes;
|
|
timePing = DateTime.Now;
|
|
this.NameOrAddress = NameOrAddress;
|
|
}
|
|
public PingResult(long ping, int timeoutPing, IPAddress ip, bool timedOut)
|
|
{
|
|
Ping = ping;
|
|
TimeoutPing = timeoutPing;
|
|
Ip = ip;
|
|
TimedOut = timedOut;
|
|
Succes = false;
|
|
}
|
|
}
|
|
}
|