Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

218 lines
12 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Provides client connections for TCP network services.</summary>
// Token: 0x020002EA RID: 746
[Token(Token = "0x20002EA")]
public class TcpClient : IDisposable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.TcpClient" /> class with the specified family.</summary>
/// <param name="family">The <see cref="P:System.Net.IPAddress.AddressFamily" /> of the IP protocol.</param>
/// <exception cref="T:System.ArgumentException">The <paramref name="family" /> parameter is not equal to AddressFamily.InterNetwork
/// -or-
/// The <paramref name="family" /> parameter is not equal to AddressFamily.InterNetworkV6</exception>
// Token: 0x060013F9 RID: 5113 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013F9")]
[Address(RVA = "0x262FB30", Offset = "0x262E930", VA = "0x18262FB30")]
public TcpClient(AddressFamily family)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.TcpClient" /> class and connects to the specified port on the specified host.</summary>
/// <param name="hostname">The DNS name of the remote host to which you intend to connect.</param>
/// <param name="port">The port number of the remote host to which you intend to connect.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="hostname" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="port" /> parameter is not between <see cref="F:System.Net.IPEndPoint.MinPort" /> and <see cref="F:System.Net.IPEndPoint.MaxPort" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when accessing the socket.</exception>
// Token: 0x060013FA RID: 5114 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013FA")]
[Address(RVA = "0x262FCC0", Offset = "0x262EAC0", VA = "0x18262FCC0")]
public TcpClient(string hostname, int port)
{
}
// Token: 0x060013FB RID: 5115 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013FB")]
[Address(RVA = "0x262FC70", Offset = "0x262EA70", VA = "0x18262FC70")]
internal TcpClient(Socket acceptedSocket)
{
}
/// <summary>Gets or sets the underlying <see cref="T:System.Net.Sockets.Socket" />.</summary>
/// <returns>The underlying network <see cref="T:System.Net.Sockets.Socket" />.</returns>
// Token: 0x1700040D RID: 1037
// (get) Token: 0x060013FC RID: 5116 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x060013FD RID: 5117 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x1700040D")]
public Socket Client
{
[Token(Token = "0x60013FC")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
[Token(Token = "0x60013FD")]
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
set
{
}
}
/// <summary>Gets a value indicating whether the underlying <see cref="T:System.Net.Sockets.Socket" /> for a <see cref="T:System.Net.Sockets.TcpClient" /> is connected to a remote host.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="P:System.Net.Sockets.TcpClient.Client" /> socket was connected to a remote resource as of the most recent operation; otherwise, <see langword="false" />.</returns>
// Token: 0x1700040E RID: 1038
// (get) Token: 0x060013FE RID: 5118 RVA: 0x000091E0 File Offset: 0x000073E0
[Token(Token = "0x1700040E")]
public bool Connected
{
[Token(Token = "0x60013FE")]
[Address(RVA = "0x262FE70", Offset = "0x262EC70", VA = "0x18262FE70")]
get
{
return default(bool);
}
}
/// <summary>Connects the client to the specified port on the specified host.</summary>
/// <param name="hostname">The DNS name of the remote host to which you intend to connect.</param>
/// <param name="port">The port number of the remote host to which you intend to connect.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="hostname" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="port" /> parameter is not between <see cref="F:System.Net.IPEndPoint.MinPort" /> and <see cref="F:System.Net.IPEndPoint.MaxPort" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when accessing the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">
/// <see cref="T:System.Net.Sockets.TcpClient" /> is closed.</exception>
// Token: 0x060013FF RID: 5119 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013FF")]
[Address(RVA = "0x262F2A0", Offset = "0x262E0A0", VA = "0x18262F2A0")]
public void Connect(string hostname, int port)
{
}
/// <summary>Connects the client to a remote TCP host using the specified remote network endpoint.</summary>
/// <param name="remoteEP">The <see cref="T:System.Net.IPEndPoint" /> to which you intend to connect.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="remoteEp" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when accessing the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.TcpClient" /> is closed.</exception>
// Token: 0x06001400 RID: 5120 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001400")]
[Address(RVA = "0x262F1B0", Offset = "0x262DFB0", VA = "0x18262F1B0")]
public void Connect(IPEndPoint remoteEP)
{
}
/// <summary>Begins an asynchronous request for a remote host connection. The remote host is specified by a host name (<see cref="T:System.String" />) and a port number (<see cref="T:System.Int32" />).</summary>
/// <param name="host">The name of the remote host.</param>
/// <param name="port">The port number of the remote host.</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 connect operation. This object is passed to the <paramref name="requestCallback" /> delegate when the operation is complete.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> object that references the asynchronous connection.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="host" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.Security.SecurityException">A caller higher in the call stack does not have permission for the requested operation.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The port number is not valid.</exception>
// Token: 0x06001401 RID: 5121 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001401")]
[Address(RVA = "0x262EFD0", Offset = "0x262DDD0", VA = "0x18262EFD0")]
public IAsyncResult BeginConnect(string host, int port, AsyncCallback requestCallback, object state)
{
return null;
}
/// <summary>Ends a pending asynchronous connection attempt.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> object returned by a call to <see cref="Overload:System.Net.Sockets.TcpClient.BeginConnect" />.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="asyncResult" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="asyncResult" /> parameter was not returned by a call to a <see cref="Overload:System.Net.Sockets.TcpClient.BeginConnect" /> method.</exception>
/// <exception cref="T:System.InvalidOperationException">The <see cref="M:System.Net.Sockets.TcpClient.EndConnect(System.IAsyncResult)" /> method was previously called for the asynchronous connection.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the <see cref="T:System.Net.Sockets.Socket" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The underlying <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x06001402 RID: 5122 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001402")]
[Address(RVA = "0x262F920", Offset = "0x262E720", VA = "0x18262F920")]
public void EndConnect(IAsyncResult asyncResult)
{
}
/// <summary>Returns the <see cref="T:System.Net.Sockets.NetworkStream" /> used to send and receive data.</summary>
/// <returns>The underlying <see cref="T:System.Net.Sockets.NetworkStream" />.</returns>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.TcpClient" /> is not connected to a remote host.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.TcpClient" /> has been closed.</exception>
// Token: 0x06001403 RID: 5123 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001403")]
[Address(RVA = "0x262FA00", Offset = "0x262E800", VA = "0x18262FA00")]
public NetworkStream GetStream()
{
return null;
}
/// <summary>Disposes this <see cref="T:System.Net.Sockets.TcpClient" /> instance and requests that the underlying TCP connection be closed.</summary>
// Token: 0x06001404 RID: 5124 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001404")]
[Address(RVA = "0x262F170", Offset = "0x262DF70", VA = "0x18262F170")]
public void Close()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Sockets.TcpClient" /> and optionally releases the managed resources.</summary>
/// <param name="disposing">Set to <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// Token: 0x06001405 RID: 5125 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001405")]
[Address(RVA = "0x262F810", Offset = "0x262E610", VA = "0x18262F810", Slot = "5")]
protected virtual void Dispose(bool disposing)
{
}
/// <summary>Releases the managed and unmanaged resources used by the <see cref="T:System.Net.Sockets.TcpClient" />.</summary>
// Token: 0x06001406 RID: 5126 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001406")]
[Address(RVA = "0xF3D5B0", Offset = "0xF3C3B0", VA = "0x180F3D5B0", Slot = "4")]
public void Dispose()
{
}
/// <summary>Frees resources used by the <see cref="T:System.Net.Sockets.TcpClient" /> class.</summary>
// Token: 0x06001407 RID: 5127 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001407")]
[Address(RVA = "0x262F980", Offset = "0x262E780", VA = "0x18262F980", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x06001408 RID: 5128 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001408")]
[Address(RVA = "0x262FE90", Offset = "0x262EC90", VA = "0x18262FE90")]
private void initialize()
{
}
// Token: 0x04000C93 RID: 3219
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000C93")]
private Socket m_ClientSocket;
// Token: 0x04000C94 RID: 3220
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000C94")]
private bool m_Active;
// Token: 0x04000C95 RID: 3221
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000C95")]
private NetworkStream m_DataStream;
// Token: 0x04000C96 RID: 3222
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000C96")]
private AddressFamily m_Family;
// Token: 0x04000C97 RID: 3223
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x4000C97")]
private bool m_CleanedUp;
}
}