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

◆ SendPingAsyncInternal()

async Task< PingReply > System.Net.NetworkInformation.Ping.SendPingAsyncInternal ( IPAddress address,
int timeout,
byte[] buffer,
PingOptions options )
inlineprivate

Definition at line 329 of file Ping.cs.

330 {
331 IPAddress addressSnapshot = GetAddressSnapshot(address);
332 CheckStart();
333 try
334 {
336 return await task.ConfigureAwait(continueOnCapturedContext: false);
337 }
338 catch (Exception innerException)
339 {
340 throw new PingException(System.SR.net_ping, innerException);
341 }
342 finally
343 {
344 Finish();
345 }
346 }
Task< PingReply > SendPingAsyncCore(IPAddress address, byte[] buffer, int timeout, PingOptions options)
Definition Ping.cs:452
static IPAddress GetAddressSnapshot(IPAddress address)
Definition Ping.cs:131
static string net_ping
Definition SR.cs:20
Definition SR.cs:7

References System.buffer, System.Net.NetworkInformation.Ping.CheckStart(), System.Net.NetworkInformation.Ping.Finish(), System.Net.NetworkInformation.Ping.GetAddressSnapshot(), System.SR.net_ping, System.options, System.Net.NetworkInformation.Ping.SendPingAsyncCore(), System.task, and System.timeout.

Referenced by System.Net.NetworkInformation.Ping.SendPingAsync().