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

166 lines
7.2 KiB
C#

using System;
using System.Net.Sockets;
using Cpp2IlInjected;
namespace System.Net
{
/// <summary>Represents a network endpoint as an IP address and a port number.</summary>
// Token: 0x0200022D RID: 557
[Token(Token = "0x200022D")]
[Serializable]
public class IPEndPoint : EndPoint
{
/// <summary>Gets the Internet Protocol (IP) address family.</summary>
/// <returns>Returns <see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" />.</returns>
// Token: 0x17000295 RID: 661
// (get) Token: 0x06000E02 RID: 3586 RVA: 0x000070F8 File Offset: 0x000052F8
[Token(Token = "0x17000295")]
public override AddressFamily AddressFamily
{
[Token(Token = "0x6000E02")]
[Address(RVA = "0x2544760", Offset = "0x2543560", VA = "0x182544760", Slot = "4")]
get
{
return AddressFamily.Unspecified;
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.IPEndPoint" /> class with the specified address and port number.</summary>
/// <param name="address">An <see cref="T:System.Net.IPAddress" />.</param>
/// <param name="port">The port number associated with the <paramref name="address" />, or 0 to specify any available port. <paramref name="port" /> is in host order.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="address" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="port" /> is less than <see cref="F:System.Net.IPEndPoint.MinPort" />.
/// -or-
/// <paramref name="port" /> is greater than <see cref="F:System.Net.IPEndPoint.MaxPort" />.
/// -or-
/// <paramref name="address" /> is less than 0 or greater than 0x00000000FFFFFFFF.</exception>
// Token: 0x06000E03 RID: 3587 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E03")]
[Address(RVA = "0x27175A0", Offset = "0x27163A0", VA = "0x1827175A0")]
public IPEndPoint(IPAddress address, int port)
{
}
/// <summary>Gets or sets the IP address of the endpoint.</summary>
/// <returns>An <see cref="T:System.Net.IPAddress" /> instance containing the IP address of the endpoint.</returns>
// Token: 0x17000296 RID: 662
// (get) Token: 0x06000E04 RID: 3588 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000296")]
public IPAddress Address
{
[Token(Token = "0x6000E04")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
}
/// <summary>Gets or sets the port number of the endpoint.</summary>
/// <returns>An integer value in the range <see cref="F:System.Net.IPEndPoint.MinPort" /> to <see cref="F:System.Net.IPEndPoint.MaxPort" /> indicating the port number of the endpoint.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The value that was specified for a set operation is less than <see cref="F:System.Net.IPEndPoint.MinPort" /> or greater than <see cref="F:System.Net.IPEndPoint.MaxPort" />.</exception>
// Token: 0x17000297 RID: 663
// (get) Token: 0x06000E05 RID: 3589 RVA: 0x00007110 File Offset: 0x00005310
[Token(Token = "0x17000297")]
public int Port
{
[Token(Token = "0x6000E05")]
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
get
{
return 0;
}
}
/// <summary>Returns the IP address and port number of the specified endpoint.</summary>
/// <returns>A string containing the IP address and the port number of the specified endpoint (for example, 192.168.1.2:80).</returns>
// Token: 0x06000E06 RID: 3590 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E06")]
[Address(RVA = "0x2717410", Offset = "0x2716210", VA = "0x182717410", Slot = "3")]
public override string ToString()
{
return null;
}
/// <summary>Serializes endpoint information into a <see cref="T:System.Net.SocketAddress" /> instance.</summary>
/// <returns>A <see cref="T:System.Net.SocketAddress" /> instance containing the socket address for the endpoint.</returns>
// Token: 0x06000E07 RID: 3591 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E07")]
[Address(RVA = "0x27173A0", Offset = "0x27161A0", VA = "0x1827173A0", Slot = "5")]
public override SocketAddress Serialize()
{
return null;
}
/// <summary>Creates an endpoint from a socket address.</summary>
/// <param name="socketAddress">The <see cref="T:System.Net.SocketAddress" /> to use for the endpoint.</param>
/// <returns>An <see cref="T:System.Net.EndPoint" /> instance using the specified socket address.</returns>
/// <exception cref="T:System.ArgumentException">The AddressFamily of <paramref name="socketAddress" /> is not equal to the AddressFamily of the current instance.
/// -or-
/// <paramref name="socketAddress" />.Size &lt; 8.</exception>
// Token: 0x06000E08 RID: 3592 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E08")]
[Address(RVA = "0x2716EB0", Offset = "0x2715CB0", VA = "0x182716EB0", Slot = "6")]
public override EndPoint Create(SocketAddress socketAddress)
{
return null;
}
/// <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Object" />.</summary>
/// <param name="comparand">The <see cref="T:System.Object" /> to compare with the current <see cref="T:System.Object" />.</param>
/// <returns>
/// <see langword="true" /> if the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Object" />; otherwise, <see langword="false" />.</returns>
// Token: 0x06000E09 RID: 3593 RVA: 0x00007128 File Offset: 0x00005328
[Token(Token = "0x6000E09")]
[Address(RVA = "0x27171C0", Offset = "0x2715FC0", VA = "0x1827171C0", Slot = "0")]
public override bool Equals(object comparand)
{
return default(bool);
}
/// <summary>Returns a hash value for a <see cref="T:System.Net.IPEndPoint" /> instance.</summary>
/// <returns>An integer hash value.</returns>
// Token: 0x06000E0A RID: 3594 RVA: 0x00007140 File Offset: 0x00005340
[Token(Token = "0x6000E0A")]
[Address(RVA = "0x1EDF1E0", Offset = "0x1EDDFE0", VA = "0x181EDF1E0", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Specifies the minimum value that can be assigned to the <see cref="P:System.Net.IPEndPoint.Port" /> property. This field is read-only.</summary>
// Token: 0x04000825 RID: 2085
[Token(Token = "0x4000825")]
public const int MinPort = 0;
/// <summary>Specifies the maximum value that can be assigned to the <see cref="P:System.Net.IPEndPoint.Port" /> property. The MaxPort value is set to 0x0000FFFF. This field is read-only.</summary>
// Token: 0x04000826 RID: 2086
[Token(Token = "0x4000826")]
public const int MaxPort = 65535;
// Token: 0x04000827 RID: 2087
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000827")]
private IPAddress m_Address;
// Token: 0x04000828 RID: 2088
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000828")]
private int m_Port;
// Token: 0x04000829 RID: 2089
[Token(Token = "0x4000829")]
internal const int AnyPort = 0;
// Token: 0x0400082A RID: 2090
[Token(Token = "0x400082A")]
internal static IPEndPoint Any;
// Token: 0x0400082B RID: 2091
[Token(Token = "0x400082B")]
internal static IPEndPoint IPv6Any;
}
}