Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SendPingAsync() [8/8]

Task< PingReply > System.Net.NetworkInformation.Ping.SendPingAsync ( string hostNameOrAddress,
int timeout,
byte[] buffer,
PingOptions? options )
inline

Definition at line 348 of file Ping.cs.

349 {
350 if (string.IsNullOrEmpty(hostNameOrAddress))
351 {
352 throw new ArgumentNullException("hostNameOrAddress");
353 }
354 if (IPAddress.TryParse(hostNameOrAddress, out IPAddress address))
355 {
356 return SendPingAsync(address, timeout, buffer, options);
357 }
359 return GetAddressAndSendAsync(hostNameOrAddress, timeout, buffer, options);
360 }
void CheckArgs(int timeout, byte[] buffer, PingOptions options)
Definition Ping.cs:71
async Task< PingReply > GetAddressAndSendAsync(string hostNameOrAddress, int timeout, byte[] buffer, PingOptions options)
Definition Ping.cs:392
Task< PingReply > SendPingAsync(IPAddress address)
Definition Ping.cs:293

References System.buffer, System.Net.NetworkInformation.Ping.CheckArgs(), System.Net.NetworkInformation.Ping.GetAddressAndSendAsync(), System.options, System.Net.NetworkInformation.Ping.SendPingAsync(), System.timeout, and System.Net.IPAddress.TryParse().