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

◆ GetAddressAndSend()

PingReply System.Net.NetworkInformation.Ping.GetAddressAndSend ( string hostNameOrAddress,
int timeout,
byte[] buffer,
PingOptions options )
inlineprivate

Definition at line 374 of file Ping.cs.

375 {
376 CheckStart();
377 try
378 {
379 IPAddress[] hostAddresses = Dns.GetHostAddresses(hostNameOrAddress);
380 return SendPingCore(hostAddresses[0], buffer, timeout, options);
381 }
382 catch (Exception innerException)
383 {
384 throw new PingException(System.SR.net_ping, innerException);
385 }
386 finally
387 {
388 Finish();
389 }
390 }
PingReply SendPingCore(IPAddress address, byte[] buffer, int timeout, PingOptions options)
Definition Ping.cs:447
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.Dns.GetHostAddresses(), System.SR.net_ping, System.options, System.Net.NetworkInformation.Ping.SendPingCore(), and System.timeout.

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