Files
2026-04-10 22:50:51 +02:00

153 lines
5.8 KiB
C#

using System;
using System.Net.Sockets;
using Cpp2IlInjected;
namespace System.Net
{
/// <summary>Stores serialized information from <see cref="T:System.Net.EndPoint" /> derived classes.</summary>
// Token: 0x02000238 RID: 568
[Token(Token = "0x2000238")]
public class SocketAddress
{
/// <summary>Gets the <see cref="T:System.Net.Sockets.AddressFamily" /> enumerated value of the current <see cref="T:System.Net.SocketAddress" />.</summary>
/// <returns>One of the <see cref="T:System.Net.Sockets.AddressFamily" /> enumerated values.</returns>
// Token: 0x170002A4 RID: 676
// (get) Token: 0x06000E39 RID: 3641 RVA: 0x000071B8 File Offset: 0x000053B8
[Token(Token = "0x170002A4")]
public AddressFamily Family
{
[Token(Token = "0x6000E39")]
[Address(RVA = "0x26259F0", Offset = "0x26247F0", VA = "0x1826259F0")]
get
{
return AddressFamily.Unspecified;
}
}
/// <summary>Gets the underlying buffer size of the <see cref="T:System.Net.SocketAddress" />.</summary>
/// <returns>The underlying buffer size of the <see cref="T:System.Net.SocketAddress" />.</returns>
// Token: 0x170002A5 RID: 677
// (get) Token: 0x06000E3A RID: 3642 RVA: 0x000071D0 File Offset: 0x000053D0
[Token(Token = "0x170002A5")]
public int Size
{
[Token(Token = "0x6000E3A")]
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560")]
get
{
return 0;
}
}
/// <summary>Gets or sets the specified index element in the underlying buffer.</summary>
/// <param name="offset">The array index element of the desired information.</param>
/// <returns>The value of the specified index element in the underlying buffer.</returns>
/// <exception cref="T:System.IndexOutOfRangeException">The specified index does not exist in the buffer.</exception>
// Token: 0x170002A6 RID: 678
[Token(Token = "0x170002A6")]
public byte this[int offset]
{
[Token(Token = "0x6000E3B")]
[Address(RVA = "0x2625A50", Offset = "0x2624850", VA = "0x182625A50")]
get
{
return 0;
}
}
/// <summary>Creates a new instance of the <see cref="T:System.Net.SocketAddress" /> class using the specified address family and buffer size.</summary>
/// <param name="family">An <see cref="T:System.Net.Sockets.AddressFamily" /> enumerated value.</param>
/// <param name="size">The number of bytes to allocate for the underlying buffer.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="size" /> is less than 2. These 2 bytes are needed to store <paramref name="family" />.</exception>
// Token: 0x06000E3C RID: 3644 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E3C")]
[Address(RVA = "0x26254B0", Offset = "0x26242B0", VA = "0x1826254B0")]
public SocketAddress(AddressFamily family, int size)
{
}
// Token: 0x06000E3D RID: 3645 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E3D")]
[Address(RVA = "0x26255C0", Offset = "0x26243C0", VA = "0x1826255C0")]
internal SocketAddress(IPAddress ipAddress)
{
}
// Token: 0x06000E3E RID: 3646 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000E3E")]
[Address(RVA = "0x2625430", Offset = "0x2624230", VA = "0x182625430")]
internal SocketAddress(IPAddress ipaddress, int port)
{
}
// Token: 0x06000E3F RID: 3647 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E3F")]
[Address(RVA = "0x2624CD0", Offset = "0x2623AD0", VA = "0x182624CD0")]
internal IPAddress GetIPAddress()
{
return null;
}
// Token: 0x06000E40 RID: 3648 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E40")]
[Address(RVA = "0x2624FA0", Offset = "0x2623DA0", VA = "0x182624FA0")]
internal IPEndPoint GetIPEndPoint()
{
return null;
}
/// <summary>Determines whether the specified <see langword="Object" /> is equal to the current <see langword="Object" />.</summary>
/// <param name="comparand">The <see cref="T:System.Object" /> to compare with the current <see langword="Object" />.</param>
/// <returns>
/// <see langword="true" /> if the specified <see langword="Object" /> is equal to the current <see langword="Object" />; otherwise, <see langword="false" />.</returns>
// Token: 0x06000E41 RID: 3649 RVA: 0x00007200 File Offset: 0x00005400
[Token(Token = "0x6000E41")]
[Address(RVA = "0x2624A50", Offset = "0x2623850", VA = "0x182624A50", Slot = "0")]
public override bool Equals(object comparand)
{
return default(bool);
}
/// <summary>Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.</summary>
/// <returns>A hash code for the current <see cref="T:System.Object" />.</returns>
// Token: 0x06000E42 RID: 3650 RVA: 0x00007218 File Offset: 0x00005418
[Token(Token = "0x6000E42")]
[Address(RVA = "0x2624B30", Offset = "0x2623930", VA = "0x182624B30", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Returns information about the socket address.</summary>
/// <returns>A string that contains information about the <see cref="T:System.Net.SocketAddress" />.</returns>
// Token: 0x06000E43 RID: 3651 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000E43")]
[Address(RVA = "0x2625060", Offset = "0x2623E60", VA = "0x182625060", Slot = "3")]
public override string ToString()
{
return null;
}
// Token: 0x0400083C RID: 2108
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400083C")]
internal int m_Size;
// Token: 0x0400083D RID: 2109
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400083D")]
internal byte[] m_Buffer;
// Token: 0x0400083E RID: 2110
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400083E")]
private bool m_changed;
// Token: 0x0400083F RID: 2111
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x400083F")]
private int m_hash;
}
}