Files
Aug2021-Cpp2IL-Dump/System/Net/IPAddress.cs
T
2026-04-10 22:50:51 +02:00

301 lines
12 KiB
C#

using System;
using System.Net.Sockets;
using Cpp2IlInjected;
namespace System.Net
{
/// <summary>Provides an Internet Protocol (IP) address.</summary>
// Token: 0x0200022C RID: 556
[Token(Token = "0x200022C")]
[Serializable]
public class IPAddress
{
/// <summary>Initializes a new instance of the <see cref="T:System.Net.IPAddress" /> class with the address specified as an <see cref="T:System.Int64" />.</summary>
/// <param name="newAddress">The long value of the IP address. For example, the value 0x2414188f in big-endian format would be the IP address "143.24.20.36".</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="newAddress" /> &lt; 0 or
/// <paramref name="newAddress" /> &gt; 0x00000000FFFFFFFF</exception>
// Token: 0x06000DF0 RID: 3568 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000DF0")]
[Address(RVA = "0x2716DA0", Offset = "0x2715BA0", VA = "0x182716DA0")]
public IPAddress(long newAddress)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.IPAddress" /> class with the address specified as a <see cref="T:System.Byte" /> array and the specified scope identifier.</summary>
/// <param name="address">The byte array value of the IP address.</param>
/// <param name="scopeid">The long value of the scope identifier.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="address" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="address" /> contains a bad IP address.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="scopeid" /> &lt; 0 or
/// <paramref name="scopeid" /> &gt; 0x00000000FFFFFFFF</exception>
// Token: 0x06000DF1 RID: 3569 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000DF1")]
[Address(RVA = "0x27168C0", Offset = "0x27156C0", VA = "0x1827168C0")]
public IPAddress(byte[] address, long scopeid)
{
}
// Token: 0x06000DF2 RID: 3570 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000DF2")]
[Address(RVA = "0x2716AA0", Offset = "0x27158A0", VA = "0x182716AA0")]
private IPAddress(ushort[] address, uint scopeid)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.IPAddress" /> class with the address specified as a <see cref="T:System.Byte" /> array.</summary>
/// <param name="address">The byte array value of the IP address.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="address" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="address" /> contains a bad IP address.</exception>
// Token: 0x06000DF3 RID: 3571 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000DF3")]
[Address(RVA = "0x2716B80", Offset = "0x2715980", VA = "0x182716B80")]
public IPAddress(byte[] address)
{
}
// Token: 0x06000DF4 RID: 3572 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000DF4")]
[Address(RVA = "0x2716B20", Offset = "0x2715920", VA = "0x182716B20")]
internal IPAddress(int newAddress)
{
}
/// <summary>Determines whether a string is a valid IP address.</summary>
/// <param name="ipString">The string to validate.</param>
/// <param name="address">The <see cref="T:System.Net.IPAddress" /> version of the string.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="ipString" /> was able to be parsed as an IP address; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="ipString" /> is null.</exception>
// Token: 0x06000DF5 RID: 3573 RVA: 0x00007050 File Offset: 0x00005250
[Token(Token = "0x6000DF5")]
[Address(RVA = "0x2716600", Offset = "0x2715400", VA = "0x182716600")]
public static bool TryParse(string ipString, out IPAddress address)
{
return default(bool);
}
/// <summary>Converts an IP address string to an <see cref="T:System.Net.IPAddress" /> instance.</summary>
/// <param name="ipString">A string that contains an IP address in dotted-quad notation for IPv4 and in colon-hexadecimal notation for IPv6.</param>
/// <returns>An <see cref="T:System.Net.IPAddress" /> instance.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="ipString" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.FormatException">
/// <paramref name="ipString" /> is not a valid IP address.</exception>
// Token: 0x06000DF6 RID: 3574 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000DF6")]
[Address(RVA = "0x2716340", Offset = "0x2715140", VA = "0x182716340")]
public static IPAddress Parse(string ipString)
{
return null;
}
// Token: 0x06000DF7 RID: 3575 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000DF7")]
[Address(RVA = "0x2715DC0", Offset = "0x2714BC0", VA = "0x182715DC0")]
private static IPAddress InternalParse(string ipString, bool tryParse)
{
return null;
}
/// <summary>Provides a copy of the <see cref="T:System.Net.IPAddress" /> as an array of bytes.</summary>
/// <returns>A <see cref="T:System.Byte" /> array.</returns>
// Token: 0x06000DF8 RID: 3576 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000DF8")]
[Address(RVA = "0x2715B10", Offset = "0x2714910", VA = "0x182715B10")]
public byte[] GetAddressBytes()
{
return null;
}
/// <summary>Gets the address family of the IP address.</summary>
/// <returns>Returns <see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" /> for IPv4 or <see cref="F:System.Net.Sockets.AddressFamily.InterNetworkV6" /> for IPv6.</returns>
// Token: 0x17000293 RID: 659
// (get) Token: 0x06000DF9 RID: 3577 RVA: 0x00007068 File Offset: 0x00005268
[Token(Token = "0x17000293")]
public AddressFamily AddressFamily
{
[Token(Token = "0x6000DF9")]
[Address(RVA = "0x3F7310", Offset = "0x3F6110", VA = "0x1803F7310")]
get
{
return AddressFamily.Unspecified;
}
}
/// <summary>Gets or sets the IPv6 address scope identifier.</summary>
/// <returns>A long integer that specifies the scope of the address.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">
/// <see langword="AddressFamily" /> = <see langword="InterNetwork" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="scopeId" /> &lt; 0
/// -or-
///
/// <paramref name="scopeId" /> &gt; 0x00000000FFFFFFFF</exception>
// Token: 0x17000294 RID: 660
// (get) Token: 0x06000DFA RID: 3578 RVA: 0x00007080 File Offset: 0x00005280
[Token(Token = "0x17000294")]
public long ScopeId
{
[Token(Token = "0x6000DFA")]
[Address(RVA = "0x2716E40", Offset = "0x2715C40", VA = "0x182716E40")]
get
{
return 0L;
}
}
/// <summary>Converts an Internet address to its standard notation.</summary>
/// <returns>A string that contains the IP address in either IPv4 dotted-quad or in IPv6 colon-hexadecimal notation.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">The address family is <see cref="F:System.Net.Sockets.AddressFamily.InterNetworkV6" /> and the address is bad.</exception>
// Token: 0x06000DFB RID: 3579 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000DFB")]
[Address(RVA = "0x27163A0", Offset = "0x27151A0", VA = "0x1827163A0", Slot = "3")]
public override string ToString()
{
return null;
}
/// <summary>Indicates whether the specified IP address is the loopback address.</summary>
/// <param name="address">An IP address.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="address" /> is the loopback address; otherwise, <see langword="false" />.</returns>
// Token: 0x06000DFC RID: 3580 RVA: 0x00007098 File Offset: 0x00005298
[Token(Token = "0x6000DFC")]
[Address(RVA = "0x2716110", Offset = "0x2714F10", VA = "0x182716110")]
public static bool IsLoopback(IPAddress address)
{
return default(bool);
}
// Token: 0x06000DFD RID: 3581 RVA: 0x000070B0 File Offset: 0x000052B0
[Token(Token = "0x6000DFD")]
[Address(RVA = "0x27158B0", Offset = "0x27146B0", VA = "0x1827158B0")]
internal bool Equals(object comparandObj, bool compareScopeId)
{
return default(bool);
}
/// <summary>Compares two IP addresses.</summary>
/// <param name="comparand">An <see cref="T:System.Net.IPAddress" /> instance to compare to the current instance.</param>
/// <returns>
/// <see langword="true" /> if the two addresses are equal; otherwise, <see langword="false" />.</returns>
// Token: 0x06000DFE RID: 3582 RVA: 0x000070C8 File Offset: 0x000052C8
[Token(Token = "0x6000DFE")]
[Address(RVA = "0x27159F0", Offset = "0x27147F0", VA = "0x1827159F0", Slot = "0")]
public override bool Equals(object comparand)
{
return default(bool);
}
/// <summary>Returns a hash value for an IP address.</summary>
/// <returns>An integer hash value.</returns>
// Token: 0x06000DFF RID: 3583 RVA: 0x000070E0 File Offset: 0x000052E0
[Token(Token = "0x6000DFF")]
[Address(RVA = "0x2715CC0", Offset = "0x2714AC0", VA = "0x182715CC0", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Maps the <see cref="T:System.Net.IPAddress" /> object to an IPv6 address.</summary>
/// <returns>Returns <see cref="T:System.Net.IPAddress" />.
/// An IPv6 address.</returns>
// Token: 0x06000E00 RID: 3584 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E00")]
[Address(RVA = "0x2716210", Offset = "0x2715010", VA = "0x182716210")]
public IPAddress MapToIPv6()
{
return null;
}
/// <summary>Provides an IP address that indicates that the server must listen for client activity on all network interfaces. This field is read-only.</summary>
// Token: 0x04000814 RID: 2068
[Token(Token = "0x4000814")]
public static readonly IPAddress Any;
/// <summary>Provides the IP loopback address. This field is read-only.</summary>
// Token: 0x04000815 RID: 2069
[Token(Token = "0x4000815")]
public static readonly IPAddress Loopback;
/// <summary>Provides the IP broadcast address. This field is read-only.</summary>
// Token: 0x04000816 RID: 2070
[Token(Token = "0x4000816")]
public static readonly IPAddress Broadcast;
/// <summary>Provides an IP address that indicates that no network interface should be used. This field is read-only.</summary>
// Token: 0x04000817 RID: 2071
[Token(Token = "0x4000817")]
public static readonly IPAddress None;
// Token: 0x04000818 RID: 2072
[Token(Token = "0x4000818")]
internal const long LoopbackMask = 255L;
// Token: 0x04000819 RID: 2073
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000819")]
internal long m_Address;
// Token: 0x0400081A RID: 2074
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400081A")]
[NonSerialized]
internal string m_ToString;
/// <summary>The <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> method uses the <see cref="F:System.Net.IPAddress.IPv6Any" /> field to indicate that a <see cref="T:System.Net.Sockets.Socket" /> must listen for client activity on all network interfaces.</summary>
// Token: 0x0400081B RID: 2075
[Token(Token = "0x400081B")]
public static readonly IPAddress IPv6Any;
/// <summary>Provides the IP loopback address. This property is read-only.</summary>
// Token: 0x0400081C RID: 2076
[Token(Token = "0x400081C")]
public static readonly IPAddress IPv6Loopback;
/// <summary>Provides an IP address that indicates that no network interface should be used. This property is read-only.</summary>
// Token: 0x0400081D RID: 2077
[Token(Token = "0x400081D")]
public static readonly IPAddress IPv6None;
// Token: 0x0400081E RID: 2078
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400081E")]
private AddressFamily m_Family;
// Token: 0x0400081F RID: 2079
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400081F")]
private ushort[] m_Numbers;
// Token: 0x04000820 RID: 2080
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000820")]
private long m_ScopeId;
// Token: 0x04000821 RID: 2081
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000821")]
private int m_HashCode;
// Token: 0x04000822 RID: 2082
[Token(Token = "0x4000822")]
internal const int IPv4AddressBytes = 4;
// Token: 0x04000823 RID: 2083
[Token(Token = "0x4000823")]
internal const int IPv6AddressBytes = 16;
// Token: 0x04000824 RID: 2084
[Token(Token = "0x4000824")]
internal const int NumberOfLabels = 8;
}
}