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

◆ MapToIPv4()

IPAddress System.Net.IPAddress.MapToIPv4 ( )
inlineinherited

Definition at line 533 of file IPAddress.cs.

534 {
535 if (IsIPv4)
536 {
537 return this;
538 }
539 uint host = (uint)((_numbers[6] << 16) | _numbers[7]);
540 return new IPAddress((uint)HostToNetworkOrder((int)host));
541 }
static long HostToNetworkOrder(long host)
Definition IPAddress.cs:408
readonly ushort[] _numbers
Definition IPAddress.cs:49
IPAddress(long newAddress)
Definition IPAddress.cs:230

References System.Net.IPAddress.IPAddress(), System.Net.IPAddress._numbers, System.Net.IPAddress.HostToNetworkOrder(), and System.Net.IPAddress.IsIPv4.

Referenced by System.Net.Http.SocksHelper.EstablishSocks4TunnelAsync().