Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ Send() [8/8]

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

Definition at line 206 of file Ping.cs.

207 {
208 if (string.IsNullOrEmpty(hostNameOrAddress))
209 {
210 throw new ArgumentNullException("hostNameOrAddress");
211 }
212 if (IPAddress.TryParse(hostNameOrAddress, out IPAddress address))
213 {
214 return Send(address, timeout, buffer, options);
215 }
217 return GetAddressAndSend(hostNameOrAddress, timeout, buffer, options);
218 }
PingReply GetAddressAndSend(string hostNameOrAddress, int timeout, byte[] buffer, PingOptions options)
Definition Ping.cs:374
void CheckArgs(int timeout, byte[] buffer, PingOptions options)
Definition Ping.cs:71

References System.buffer, System.Net.NetworkInformation.Ping.CheckArgs(), System.Net.NetworkInformation.Ping.GetAddressAndSend(), System.options, System.Net.Sockets.Send, System.timeout, and System.Net.IPAddress.TryParse().