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

◆ GetIPPacketInformation() [1/2]

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

Definition at line 370 of file SocketPal.cs.

371 {
372 IPAddress address = ((controlBuffer->length == UIntPtr.Zero) ? IPAddress.None : new IPAddress(controlBuffer->address));
373 return new IPPacketInformation(address, (int)controlBuffer->index);
374 }

References System.Net.IPAddress.None, and System.UIntPtr.Zero.

Referenced by System.Net.Sockets.SocketAsyncEventArgs.FinishOperationReceiveMessageFrom(), System.Net.Sockets.SocketPal.GetIPPacketInformation(), and System.Net.Sockets.SocketPal.ReceiveMessageFrom().