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: 0x02000283 RID: 643
|
|
[Token(Token = "0x2000283")]
|
|
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: 0x06001026 RID: 4134 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001026")]
|
|
[Address(RVA = "0xB28250", Offset = "0xB27250", VA = "0x180B28250")]
|
|
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: 0x06001027 RID: 4135 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001027")]
|
|
[Address(RVA = "0xB28380", Offset = "0xB27380", VA = "0x180B28380")]
|
|
public static IPAddress[] EndGetHostAddresses(IAsyncResult asyncResult)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06001028 RID: 4136 RVA: 0x00007B48 File Offset: 0x00005D48
|
|
[Token(Token = "0x6001028")]
|
|
[Address(RVA = "0xB28A40", Offset = "0xB27A40", VA = "0x180B28A40")]
|
|
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: 0x06001029 RID: 4137 RVA: 0x00007B60 File Offset: 0x00005D60
|
|
[Token(Token = "0x6001029")]
|
|
[Address(RVA = "0xB288D0", Offset = "0xB278D0", VA = "0x180B288D0")]
|
|
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: 0x0600102A RID: 4138 RVA: 0x00007B78 File Offset: 0x00005D78
|
|
[Token(Token = "0x600102A")]
|
|
[Address(RVA = "0xB28F60", Offset = "0xB27F60", VA = "0x180B28F60")]
|
|
private static bool GetHostName_internal(out string h_name)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x0600102B RID: 4139 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600102B")]
|
|
[Address(RVA = "0xB284C0", Offset = "0xB274C0", VA = "0x180B284C0")]
|
|
private static void Error_11001(string hostName)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600102C RID: 4140 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600102C")]
|
|
[Address(RVA = "0xB28FB0", Offset = "0xB27FB0", VA = "0x180B28FB0")]
|
|
private static IPHostEntry hostent_to_IPHostEntry(string originalHostName, string h_name, string[] h_aliases, string[] h_addrlist)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0600102D RID: 4141 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600102D")]
|
|
[Address(RVA = "0xB288E0", Offset = "0xB278E0", VA = "0x180B288E0")]
|
|
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: 0x0600102E RID: 4142 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600102E")]
|
|
[Address(RVA = "0xB28B40", Offset = "0xB27B40", VA = "0x180B28B40")]
|
|
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: 0x0600102F RID: 4143 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600102F")]
|
|
[Address(RVA = "0xB28E10", Offset = "0xB27E10", VA = "0x180B28E10")]
|
|
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: 0x06001030 RID: 4144 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001030")]
|
|
[Address(RVA = "0xB28710", Offset = "0xB27710", VA = "0x180B28710")]
|
|
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: 0x06001031 RID: 4145 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001031")]
|
|
[Address(RVA = "0xB28A50", Offset = "0xB27A50", VA = "0x180B28A50")]
|
|
[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: 0x06001032 RID: 4146 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001032")]
|
|
[Address(RVA = "0xB28F70", Offset = "0xB27F70", VA = "0x180B28F70")]
|
|
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: 0x06001033 RID: 4147 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001033")]
|
|
[Address(RVA = "0xB28530", Offset = "0xB27530", VA = "0x180B28530")]
|
|
public static Task<IPAddress[]> GetHostAddressesAsync(string hostNameOrAddress)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x02000284 RID: 644
|
|
// (Invoke) Token: 0x06001035 RID: 4149
|
|
[Token(Token = "0x2000284")]
|
|
private delegate IPAddress[] GetHostAddressesCallback(string hostName);
|
|
}
|
|
}
|