2 instantiations of PingReply
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.RawSocket.cs (2)
246
reply = new
PingReply
(address, socketConfig.Options, status, roundTripTime, dataBuffer);
391
return new
PingReply
(address ?? new IPAddress(0), null, status, rtt, Array.Empty<byte>());
56 references to PingReply
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Devices\Network.Ping.vb (1)
77
Dim reply As NetInfoAlias.
PingReply
= pingMaker.Send(
netstandard (1)
netstandard.cs (1)
1224
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.NetworkInformation.
PingReply
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
716
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.NetworkInformation.
PingReply
))]
System.Net.Ping (53)
System\Net\NetworkInformation\Ping.cs (36)
180
/// A <see cref="
PingReply
"/> object that provides information about the ICMP echo reply message, if one was received,
187
public
PingReply
Send(string hostNameOrAddress)
204
/// A <see cref="
PingReply
"/> object that provides information about the ICMP echo reply message, if one was received,
212
public
PingReply
Send(string hostNameOrAddress, int timeout)
225
/// A <see cref="
PingReply
"/> object that provides information about the ICMP echo reply message, if one was received,
232
public
PingReply
Send(IPAddress address)
248
/// A <see cref="
PingReply
"/> object that provides information about the ICMP echo reply message, if one was received,
256
public
PingReply
Send(IPAddress address, int timeout)
277
/// A <see cref="
PingReply
"/> object that provides information about the ICMP echo reply message, if one was received,
287
public
PingReply
Send(string hostNameOrAddress, int timeout, byte[] buffer)
307
/// A <see cref="
PingReply
"/> object that provides information about the ICMP echo reply message, if one was received,
317
public
PingReply
Send(IPAddress address, int timeout, byte[] buffer)
341
/// A <see cref="
PingReply
"/> object that provides information about the ICMP echo reply message, if one was received,
351
public
PingReply
Send(string hostNameOrAddress, int timeout, byte[] buffer, PingOptions? options)
386
/// A <see cref="
PingReply
"/> object that provides information about the ICMP echo reply message, if one was received,
396
public
PingReply
Send(IPAddress address, int timeout, byte[] buffer, PingOptions? options)
437
/// A <see cref="
PingReply
"/> object that provides information about the ICMP echo reply message, if one was received,
447
public
PingReply
Send(IPAddress address, TimeSpan timeout, byte[]? buffer = null, PingOptions? options = null) =>
469
/// A <see cref="
PingReply
"/> object that provides information about the ICMP echo reply message, if one was received,
479
public
PingReply
Send(string hostNameOrAddress, TimeSpan timeout, byte[]? buffer = null,
522
private void TranslateTaskToEap(object? userToken, Task<
PingReply
> pingTask)
533
public Task<
PingReply
> SendPingAsync(IPAddress address)
538
public Task<
PingReply
> SendPingAsync(string hostNameOrAddress)
543
public Task<
PingReply
> SendPingAsync(IPAddress address, int timeout)
548
public Task<
PingReply
> SendPingAsync(string hostNameOrAddress, int timeout)
553
public Task<
PingReply
> SendPingAsync(IPAddress address, int timeout, byte[] buffer)
558
public Task<
PingReply
> SendPingAsync(string hostNameOrAddress, int timeout, byte[] buffer)
563
public Task<
PingReply
> SendPingAsync(IPAddress address, int timeout, byte[] buffer, PingOptions? options)
583
public Task<
PingReply
> SendPingAsync(IPAddress address, TimeSpan timeout, byte[]? buffer = null, PingOptions? options = null, CancellationToken cancellationToken = default)
588
private Task<
PingReply
> SendPingAsync(IPAddress address, int timeout, byte[] buffer, PingOptions? options, CancellationToken cancellationToken)
603
public Task<
PingReply
> SendPingAsync(string hostNameOrAddress, int timeout, byte[] buffer, PingOptions? options)
626
public Task<
PingReply
> SendPingAsync(string hostNameOrAddress, TimeSpan timeout, byte[]? buffer = null, PingOptions? options = null, CancellationToken cancellationToken = default)
631
private Task<
PingReply
> SendPingAsync(string hostNameOrAddress, int timeout, byte[] buffer, PingOptions? options, CancellationToken cancellationToken)
686
private
PingReply
GetAddressAndSend(string hostNameOrAddress, int timeout, byte[] buffer, PingOptions? options)
704
private async Task<
PingReply
> SendPingAsyncInternal<TArg>(
721
Task<
PingReply
> pingTask = SendPingAsyncCore(address, buffer, timeout, options);
System\Net\NetworkInformation\Ping.PingUtility.cs (5)
51
private
PingReply
SendWithPingUtility(IPAddress address, byte[] buffer, int timeout, PingOptions? options)
74
private async Task<
PingReply
> SendWithPingUtilityAsync(IPAddress address, byte[] buffer, int timeout, PingOptions? options)
108
private static
PingReply
ParsePingUtilityOutput(IPAddress address, int exitCode, string stdout)
114
if (TryParseTtlExceeded(stdout, out
PingReply
? reply))
128
private static bool TryParseTtlExceeded(string stdout, out
PingReply
? reply)
System\Net\NetworkInformation\Ping.RawSocket.cs (7)
128
[NotNullWhen(true)] out
PingReply
? reply)
250
private static unsafe
PingReply
SendIcmpEchoRequestOverRawSocket(IPAddress address, byte[] buffer, int timeout, PingOptions? options)
275
if (TryGetPingReply(socketConfig, receiveBuffer, bytesReceived, startingTimestamp, ref ipHeaderLength, out
PingReply
? reply))
300
private static
PingReply
CreatePingReplyForUnreachableHost(IPAddress address, Socket socket)
322
private async Task<
PingReply
> SendIcmpEchoRequestOverRawSocketAsync(IPAddress address, byte[] buffer, int timeout, PingOptions? options)
360
if (TryGetPingReply(socketConfig, receiveBuffer, bytesReceived, startingTimestamp, ref ipHeaderLength, out
PingReply
? reply))
387
private static
PingReply
CreatePingReply(IPStatus status, IPAddress? address = null, long rtt = 0)
System\Net\NetworkInformation\Ping.Unix.cs (3)
22
private
PingReply
SendPingCore(IPAddress address, byte[] buffer, int timeout, PingOptions? options)
24
PingReply
reply = RawSocketPermissions.CanUseRawSockets(address.AddressFamily) ?
30
private Task<
PingReply
> SendPingAsyncCore(IPAddress address, byte[] buffer, int timeout, PingOptions? options)
System\Net\NetworkInformation\PingCompletedEventArgs.cs (2)
12
internal PingCompletedEventArgs(
PingReply
? reply, Exception? error, bool cancelled, object? userToken) : base(error, cancelled, userToken)
17
public
PingReply
? Reply { get; }