187 lines
11 KiB
C#
187 lines
11 KiB
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Net
|
|
{
|
|
/// <summary>Provides simple domain name resolution functionality.</summary>
|
|
// Token: 0x02000287 RID: 647
|
|
[Token(Token = "0x2000287")]
|
|
public static class Dns
|
|
{
|
|
/// <summary>Asynchronously returns the Internet Protocol (IP) addresses for the specified host.</summary>
|
|
/// <param name="hostNameOrAddress">The host name or IP address to resolve.</param>
|
|
/// <param name="requestCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the operation is complete.</param>
|
|
/// <param name="state">A user-defined object that contains information about the operation. This object is passed to the <paramref name="requestCallback" /> delegate when the operation is complete.</param>
|
|
/// <returns>An <see cref="T:System.IAsyncResult" /> instance that references the asynchronous request.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="hostNameOrAddress" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="hostNameOrAddress" /> is greater than 255 characters.</exception>
|
|
/// <exception cref="T:System.Net.Sockets.SocketException">An error is encountered when resolving <paramref name="hostNameOrAddress" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="hostNameOrAddress" /> is an invalid IP address.</exception>
|
|
// Token: 0x0600103C RID: 4156 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600103C")]
|
|
[Address(RVA = "0x2702BA0", Offset = "0x27019A0", VA = "0x182702BA0")]
|
|
public static IAsyncResult BeginGetHostAddresses(string hostNameOrAddress, AsyncCallback requestCallback, object state)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Ends an asynchronous request for DNS information.</summary>
|
|
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> instance returned by a call to the <see cref="M:System.Net.Dns.BeginGetHostAddresses(System.String,System.AsyncCallback,System.Object)" /> method.</param>
|
|
/// <returns>An array of type <see cref="T:System.Net.IPAddress" /> that holds the IP addresses for the host specified by the <paramref name="hostNameOrAddress" /> parameter of <see cref="M:System.Net.Dns.BeginGetHostAddresses(System.String,System.AsyncCallback,System.Object)" />.</returns>
|
|
// Token: 0x0600103D RID: 4157 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600103D")]
|
|
[Address(RVA = "0x2702CD0", Offset = "0x2701AD0", VA = "0x182702CD0")]
|
|
public static IPAddress[] EndGetHostAddresses(IAsyncResult asyncResult)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0600103E RID: 4158 RVA: 0x00007B60 File Offset: 0x00005D60
|
|
[Token(Token = "0x600103E")]
|
|
[Address(RVA = "0x2703390", Offset = "0x2702190", VA = "0x182703390")]
|
|
private static bool GetHostByName_internal(string host, out string h_name, out string[] h_aliases, out string[] h_addr_list, int hint)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x0600103F RID: 4159 RVA: 0x00007B78 File Offset: 0x00005D78
|
|
[Token(Token = "0x600103F")]
|
|
[Address(RVA = "0x2703220", Offset = "0x2702020", VA = "0x182703220")]
|
|
private static bool GetHostByAddr_internal(string addr, out string h_name, out string[] h_aliases, out string[] h_addr_list, int hint)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06001040 RID: 4160 RVA: 0x00007B90 File Offset: 0x00005D90
|
|
[Token(Token = "0x6001040")]
|
|
[Address(RVA = "0x27038B0", Offset = "0x27026B0", VA = "0x1827038B0")]
|
|
private static bool GetHostName_internal(out string h_name)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06001041 RID: 4161 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6001041")]
|
|
[Address(RVA = "0x2702E10", Offset = "0x2701C10", VA = "0x182702E10")]
|
|
private static void Error_11001(string hostName)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001042 RID: 4162 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001042")]
|
|
[Address(RVA = "0x2703900", Offset = "0x2702700", VA = "0x182703900")]
|
|
private static IPHostEntry hostent_to_IPHostEntry(string originalHostName, string h_name, string[] h_aliases, string[] h_addrlist)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06001043 RID: 4163 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001043")]
|
|
[Address(RVA = "0x2703230", Offset = "0x2702030", VA = "0x182703230")]
|
|
private static IPHostEntry GetHostByAddressFromString(string address, bool parse)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Resolves a host name or IP address to an <see cref="T:System.Net.IPHostEntry" /> instance.</summary>
|
|
/// <param name="hostNameOrAddress">The host name or IP address to resolve.</param>
|
|
/// <returns>An <see cref="T:System.Net.IPHostEntry" /> instance that contains address information about the host specified in <paramref name="hostNameOrAddress" />.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="hostNameOrAddress" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="hostNameOrAddress" /> parameter is greater than 255 characters.</exception>
|
|
/// <exception cref="T:System.Net.Sockets.SocketException">An error was encountered when resolving the <paramref name="hostNameOrAddress" /> parameter.</exception>
|
|
/// <exception cref="T:System.ArgumentException">The <paramref name="hostNameOrAddress" /> parameter is an invalid IP address.</exception>
|
|
// Token: 0x06001044 RID: 4164 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001044")]
|
|
[Address(RVA = "0x2703490", Offset = "0x2702290", VA = "0x182703490")]
|
|
public static IPHostEntry GetHostEntry(string hostNameOrAddress)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Resolves an IP address to an <see cref="T:System.Net.IPHostEntry" /> instance.</summary>
|
|
/// <param name="address">An IP address.</param>
|
|
/// <returns>An <see cref="T:System.Net.IPHostEntry" /> instance that contains address information about the host specified in <paramref name="address" />.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="address" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Net.Sockets.SocketException">An error is encountered when resolving <paramref name="address" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="address" /> is an invalid IP address.</exception>
|
|
// Token: 0x06001045 RID: 4165 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001045")]
|
|
[Address(RVA = "0x2703760", Offset = "0x2702560", VA = "0x182703760")]
|
|
public static IPHostEntry GetHostEntry(IPAddress address)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the Internet Protocol (IP) addresses for the specified host.</summary>
|
|
/// <param name="hostNameOrAddress">The host name or IP address to resolve.</param>
|
|
/// <returns>An array of type <see cref="T:System.Net.IPAddress" /> that holds the IP addresses for the host that is specified by the <paramref name="hostNameOrAddress" /> parameter.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="hostNameOrAddress" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="hostNameOrAddress" /> is greater than 255 characters.</exception>
|
|
/// <exception cref="T:System.Net.Sockets.SocketException">An error is encountered when resolving <paramref name="hostNameOrAddress" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="hostNameOrAddress" /> is an invalid IP address.</exception>
|
|
// Token: 0x06001046 RID: 4166 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001046")]
|
|
[Address(RVA = "0x2703060", Offset = "0x2701E60", VA = "0x182703060")]
|
|
public static IPAddress[] GetHostAddresses(string hostNameOrAddress)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the DNS information for the specified DNS host name.</summary>
|
|
/// <param name="hostName">The DNS name of the host.</param>
|
|
/// <returns>An <see cref="T:System.Net.IPHostEntry" /> object that contains host information for the address specified in <paramref name="hostName" />.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="hostName" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="hostName" /> is greater than 255 characters.</exception>
|
|
/// <exception cref="T:System.Net.Sockets.SocketException">An error is encountered when resolving <paramref name="hostName" />.</exception>
|
|
// Token: 0x06001047 RID: 4167 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001047")]
|
|
[Address(RVA = "0x27033A0", Offset = "0x27021A0", VA = "0x1827033A0")]
|
|
[Obsolete]
|
|
public static IPHostEntry GetHostByName(string hostName)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the host name of the local computer.</summary>
|
|
/// <returns>A string that contains the DNS host name of the local computer.</returns>
|
|
/// <exception cref="T:System.Net.Sockets.SocketException">An error is encountered when resolving the local host name.</exception>
|
|
// Token: 0x06001048 RID: 4168 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001048")]
|
|
[Address(RVA = "0x27038C0", Offset = "0x27026C0", VA = "0x1827038C0")]
|
|
public static string GetHostName()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the Internet Protocol (IP) addresses for the specified host as an asynchronous operation.</summary>
|
|
/// <param name="hostNameOrAddress">The host name or IP address to resolve.</param>
|
|
/// <returns>The task object representing the asynchronous operation. The <see cref="P:System.Threading.Tasks.Task`1.Result" /> property on the task object returns an array of type <see cref="T:System.Net.IPAddress" /> that holds the IP addresses for the host that is specified by the <paramref name="hostNameOrAddress" /> parameter.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="hostNameOrAddress" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="hostNameOrAddress" /> is greater than 255 characters.</exception>
|
|
/// <exception cref="T:System.Net.Sockets.SocketException">An error is encountered when resolving <paramref name="hostNameOrAddress" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="hostNameOrAddress" /> is an invalid IP address.</exception>
|
|
// Token: 0x06001049 RID: 4169 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001049")]
|
|
[Address(RVA = "0x2702E80", Offset = "0x2701C80", VA = "0x182702E80")]
|
|
public static Task<IPAddress[]> GetHostAddressesAsync(string hostNameOrAddress)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x02000288 RID: 648
|
|
// (Invoke) Token: 0x0600104B RID: 4171
|
|
[Token(Token = "0x2000288")]
|
|
private delegate IPAddress[] GetHostAddressesCallback(string hostName);
|
|
}
|
|
}
|