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

◆ SetReceivingPacketInformation()

void System.Net.Sockets.Socket.SetReceivingPacketInformation ( )
inlinepackage

Definition at line 3450 of file Socket.cs.

3451 {
3453 {
3454 IPAddress iPAddress = ((_rightEndPoint is IPEndPoint iPEndPoint) ? iPEndPoint.Address : null);
3455 if (_addressFamily == AddressFamily.InterNetwork)
3456 {
3458 }
3459 if (iPAddress != null && IsDualMode && (iPAddress.IsIPv4MappedToIPv6 || iPAddress.Equals(IPAddress.IPv6Any)))
3460 {
3461 SocketPal.SetReceivingDualModeIPv4PacketInformation(this);
3462 }
3463 if (_addressFamily == AddressFamily.InterNetworkV6 && (iPAddress == null || !iPAddress.IsIPv4MappedToIPv6))
3464 {
3466 }
3468 }
3469 }
AddressFamily _addressFamily
Definition Socket.cs:555
void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue)
Definition Socket.cs:2143

References System.Net.Sockets.Socket._addressFamily, System.Net.Sockets.Socket._receivingPacketInformation, System.Net.Sockets.Socket._rightEndPoint, System.Net.IPAddress.IPv6Any, System.Net.Sockets.Socket.IsDualMode, System.Net.Sockets.SocketPal.SetReceivingDualModeIPv4PacketInformation(), and System.Net.Sockets.Socket.SetSocketOption().

Referenced by System.Net.Sockets.Socket.ReceiveMessageFrom(), System.Net.Sockets.Socket.ReceiveMessageFrom(), and System.Net.Sockets.Socket.ReceiveMessageFromAsync().