25 lines
962 B
C#
25 lines
962 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Net.Sockets
|
|
{
|
|
/// <summary>This class contains extension methods to the <see cref="T:System.Net.Sockets.Socket" /> class.</summary>
|
|
// Token: 0x020002ED RID: 749
|
|
[Token(Token = "0x20002ED")]
|
|
public static class SocketTaskExtensions
|
|
{
|
|
/// <summary>Establishes a connection to a remote host. The host is specified by an IP address and a port number.</summary>
|
|
/// <param name="socket">The socket to perform the connect operation on.</param>
|
|
/// <param name="address">The IP address of the remote host.</param>
|
|
/// <param name="port">The port number of the remote host.</param>
|
|
// Token: 0x06001416 RID: 5142 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001416")]
|
|
[Address(RVA = "0xAE15D0", Offset = "0xAE05D0", VA = "0x180AE15D0")]
|
|
public static Task ConnectAsync(this Socket socket, IPAddress address, int port)
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|