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

◆ GetIPPacketInformation() [2/2]

static unsafe IPPacketInformation System.Net.Sockets.SocketPal.GetIPPacketInformation ( global::Interop::Winsock::ControlDataIPv6 * controlBuffer)
inlinestatic

Definition at line 376 of file SocketPal.cs.

377 {
378 if (controlBuffer->length == (UIntPtr)(ulong)sizeof(global::Interop.Winsock.ControlData))
379 {
380 return GetIPPacketInformation((global::Interop.Winsock.ControlData*)controlBuffer);
381 }
382 IPAddress address = ((controlBuffer->length != UIntPtr.Zero) ? new IPAddress(new ReadOnlySpan<byte>(controlBuffer->address, 16)) : IPAddress.IPv6None);
383 return new IPPacketInformation(address, (int)controlBuffer->index);
384 }
static unsafe IPPacketInformation GetIPPacketInformation(global::Interop.Winsock.ControlData *controlBuffer)
Definition SocketPal.cs:370

References System.Net.Sockets.SocketPal.GetIPPacketInformation(), System.Net.IPAddress.IPv6None, and System.UIntPtr.Zero.