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

◆ CreatePingReply()

PingReply System.Net.NetworkInformation.Ping.CreatePingReply ( )
inlineprivate

Definition at line 576 of file Ping.cs.

577 {
579 if (_ipv6)
580 {
581 global::Interop.IpHlpApi.Icmp6EchoReply reply = Marshal.PtrToStructure<global::Interop.IpHlpApi.Icmp6EchoReply>(replyBuffer.DangerousGetHandle());
583 }
584 global::Interop.IpHlpApi.IcmpEchoReply reply2 = Marshal.PtrToStructure<global::Interop.IpHlpApi.IcmpEchoReply>(replyBuffer.DangerousGetHandle());
586 }
SafeLocalAllocHandle _replyBuffer
Definition Ping.cs:37
static PingReply CreatePingReplyFromIcmpEchoReply(global::Interop.IpHlpApi.IcmpEchoReply reply)
Definition Ping.cs:662
static PingReply CreatePingReplyFromIcmp6EchoReply(global::Interop.IpHlpApi.Icmp6EchoReply reply, IntPtr dataPtr, int sendSize)
Definition Ping.cs:685
static ? object PtrToStructure(IntPtr ptr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type structureType)
Definition Marshal.cs:1164

References System.Net.NetworkInformation.Ping._ipv6, System.Net.NetworkInformation.Ping._replyBuffer, System.Net.NetworkInformation.Ping._sendSize, System.Net.NetworkInformation.Ping.CreatePingReplyFromIcmp6EchoReply(), System.Net.NetworkInformation.Ping.CreatePingReplyFromIcmpEchoReply(), System.Runtime.InteropServices.SafeHandle.DangerousGetHandle(), and System.Runtime.InteropServices.Marshal.PtrToStructure().

Referenced by System.Net.NetworkInformation.Ping.DoSendPingCore(), and System.Net.NetworkInformation.Ping.PingCallback().