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

◆ Send() [4/8]

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

Definition at line 220 of file Ping.cs.

221 {
222 CheckArgs(address, timeout, buffer, options);
223 IPAddress addressSnapshot = GetAddressSnapshot(address);
224 CheckStart();
225 try
226 {
227 return SendPingCore(addressSnapshot, buffer, timeout, options);
228 }
229 catch (Exception innerException)
230 {
231 throw new PingException(System.SR.net_ping, innerException);
232 }
233 finally
234 {
235 Finish();
236 }
237 }
void CheckArgs(int timeout, byte[] buffer, PingOptions options)
Definition Ping.cs:71
PingReply SendPingCore(IPAddress address, byte[] buffer, int timeout, PingOptions options)
Definition Ping.cs:447
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.CheckArgs(), 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.SendPingCore(), and System.timeout.