95 lines
3.5 KiB
C#
95 lines
3.5 KiB
C#
using System;
|
|
|
|
namespace System.Net.NetworkInformation
|
|
{
|
|
/// <summary>Provides information about the status and data resulting from a <see cref="Overload:System.Net.NetworkInformation.Ping.Send" /> or <see cref="Overload:System.Net.NetworkInformation.Ping.SendAsync" /> operation.</summary>
|
|
// Token: 0x020001B2 RID: 434
|
|
public class PingReply
|
|
{
|
|
// Token: 0x06000E61 RID: 3681 RVA: 0x00028EFC File Offset: 0x000270FC
|
|
internal PingReply(IPAddress address, byte[] buffer, PingOptions options, long roundtripTime, IPStatus status)
|
|
{
|
|
this.address = address;
|
|
this.buffer = buffer;
|
|
this.options = options;
|
|
this.rtt = roundtripTime;
|
|
this.status = status;
|
|
}
|
|
|
|
/// <summary>Gets the address of the host that sends the Internet Control Message Protocol (ICMP) echo reply.</summary>
|
|
/// <returns>An <see cref="T:System.Net.IPAddress" /> containing the destination for the ICMP echo message.</returns>
|
|
// Token: 0x170004A8 RID: 1192
|
|
// (get) Token: 0x06000E62 RID: 3682 RVA: 0x00028F2C File Offset: 0x0002712C
|
|
public IPAddress Address
|
|
{
|
|
get
|
|
{
|
|
return this.address;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the buffer of data received in an Internet Control Message Protocol (ICMP) echo reply message.</summary>
|
|
/// <returns>A <see cref="T:System.Byte" /> array containing the data received in an ICMP echo reply message, or an empty array, if no reply was received.</returns>
|
|
// Token: 0x170004A9 RID: 1193
|
|
// (get) Token: 0x06000E63 RID: 3683 RVA: 0x00028F34 File Offset: 0x00027134
|
|
public byte[] Buffer
|
|
{
|
|
get
|
|
{
|
|
return this.buffer;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the options used to transmit the reply to an Internet Control Message Protocol (ICMP) echo request.</summary>
|
|
/// <returns>A <see cref="T:System.Net.NetworkInformation.PingOptions" /> object that contains the Time to Live (TTL) and the fragmentation directive used for transmitting the reply if <see cref="P:System.Net.NetworkInformation.PingReply.Status" /> is <see cref="F:System.Net.NetworkInformation.IPStatus.Success" />; otherwise, null.</returns>
|
|
// Token: 0x170004AA RID: 1194
|
|
// (get) Token: 0x06000E64 RID: 3684 RVA: 0x00028F3C File Offset: 0x0002713C
|
|
public PingOptions Options
|
|
{
|
|
get
|
|
{
|
|
return this.options;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the number of milliseconds taken to send an Internet Control Message Protocol (ICMP) echo request and receive the corresponding ICMP echo reply message.</summary>
|
|
/// <returns>An <see cref="T:System.Int64" /> that specifies the round trip time, in milliseconds. </returns>
|
|
// Token: 0x170004AB RID: 1195
|
|
// (get) Token: 0x06000E65 RID: 3685 RVA: 0x00028F44 File Offset: 0x00027144
|
|
public long RoundtripTime
|
|
{
|
|
get
|
|
{
|
|
return this.rtt;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the status of an attempt to send an Internet Control Message Protocol (ICMP) echo request and receive the corresponding ICMP echo reply message.</summary>
|
|
/// <returns>An <see cref="T:System.Net.NetworkInformation.IPStatus" /> value indicating the result of the request.</returns>
|
|
// Token: 0x170004AC RID: 1196
|
|
// (get) Token: 0x06000E66 RID: 3686 RVA: 0x00028F4C File Offset: 0x0002714C
|
|
public IPStatus Status
|
|
{
|
|
get
|
|
{
|
|
return this.status;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000CE6 RID: 3302
|
|
private IPAddress address;
|
|
|
|
// Token: 0x04000CE7 RID: 3303
|
|
private byte[] buffer;
|
|
|
|
// Token: 0x04000CE8 RID: 3304
|
|
private PingOptions options;
|
|
|
|
// Token: 0x04000CE9 RID: 3305
|
|
private long rtt;
|
|
|
|
// Token: 0x04000CEA RID: 3306
|
|
private IPStatus status;
|
|
}
|
|
}
|