m
This commit is contained in:
@@ -0,0 +1,165 @@
|
||||
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: 0x02000229 RID: 553
|
||||
[Token(Token = "0x2000229")]
|
||||
[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: 0x17000291 RID: 657
|
||||
// (get) Token: 0x06000DEC RID: 3564 RVA: 0x000070E0 File Offset: 0x000052E0
|
||||
[Token(Token = "0x17000291")]
|
||||
public override AddressFamily AddressFamily
|
||||
{
|
||||
[Token(Token = "0x6000DEC")]
|
||||
[Address(RVA = "0xB3D0E0", Offset = "0xB3C0E0", VA = "0x180B3D0E0", 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: 0x06000DED RID: 3565 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000DED")]
|
||||
[Address(RVA = "0xB3CFF0", Offset = "0xB3BFF0", VA = "0x180B3CFF0")]
|
||||
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: 0x17000292 RID: 658
|
||||
// (get) Token: 0x06000DEE RID: 3566 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000292")]
|
||||
public IPAddress Address
|
||||
{
|
||||
[Token(Token = "0x6000DEE")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
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: 0x17000293 RID: 659
|
||||
// (get) Token: 0x06000DEF RID: 3567 RVA: 0x000070F8 File Offset: 0x000052F8
|
||||
[Token(Token = "0x17000293")]
|
||||
public int Port
|
||||
{
|
||||
[Token(Token = "0x6000DEF")]
|
||||
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540")]
|
||||
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: 0x06000DF0 RID: 3568 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000DF0")]
|
||||
[Address(RVA = "0xB3CE60", Offset = "0xB3BE60", VA = "0x180B3CE60", 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: 0x06000DF1 RID: 3569 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000DF1")]
|
||||
[Address(RVA = "0xB3CDF0", Offset = "0xB3BDF0", VA = "0x180B3CDF0", 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 < 8.</exception>
|
||||
// Token: 0x06000DF2 RID: 3570 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000DF2")]
|
||||
[Address(RVA = "0xB3C900", Offset = "0xB3B900", VA = "0x180B3C900", 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: 0x06000DF3 RID: 3571 RVA: 0x00007110 File Offset: 0x00005310
|
||||
[Token(Token = "0x6000DF3")]
|
||||
[Address(RVA = "0xB3CC10", Offset = "0xB3BC10", VA = "0x180B3CC10", 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: 0x06000DF4 RID: 3572 RVA: 0x00007128 File Offset: 0x00005328
|
||||
[Token(Token = "0x6000DF4")]
|
||||
[Address(RVA = "0x6F6B70", Offset = "0x6F5B70", VA = "0x1806F6B70", 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: 0x04000818 RID: 2072
|
||||
[Token(Token = "0x4000818")]
|
||||
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: 0x04000819 RID: 2073
|
||||
[Token(Token = "0x4000819")]
|
||||
public const int MaxPort = 65535;
|
||||
|
||||
// Token: 0x0400081A RID: 2074
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400081A")]
|
||||
private IPAddress m_Address;
|
||||
|
||||
// Token: 0x0400081B RID: 2075
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400081B")]
|
||||
private int m_Port;
|
||||
|
||||
// Token: 0x0400081C RID: 2076
|
||||
[Token(Token = "0x400081C")]
|
||||
internal const int AnyPort = 0;
|
||||
|
||||
// Token: 0x0400081D RID: 2077
|
||||
[Token(Token = "0x400081D")]
|
||||
internal static IPEndPoint Any;
|
||||
|
||||
// Token: 0x0400081E RID: 2078
|
||||
[Token(Token = "0x400081E")]
|
||||
internal static IPEndPoint IPv6Any;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user