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

◆ MapToIPv6()

IPAddress System.Net.IPAddress.MapToIPv6 ( )
inlineinherited

Definition at line 513 of file IPAddress.cs.

514 {
515 if (IsIPv6)
516 {
517 return this;
518 }
519 uint num = (uint)NetworkToHostOrder((int)PrivateAddress);
520 return new IPAddress(new ushort[8]
521 {
522 0,
523 0,
524 0,
525 0,
526 0,
527 65535,
528 (ushort)(num >> 16),
529 (ushort)num
530 }, 0u);
531 }
static long NetworkToHostOrder(long network)
Definition IPAddress.cs:435
IPAddress(long newAddress)
Definition IPAddress.cs:230

References System.Net.IPAddress.IPAddress(), System.Net.IPAddress.IsIPv6, System.Net.IPAddress.NetworkToHostOrder(), and System.Net.IPAddress.PrivateAddress.

Referenced by System.Net.Sockets.Socket.Serialize().