Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x020002E6 RID: 742
[Token(Token = "0x20002E6")]
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: 0x060013E3 RID: 5091 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013E3")]
[Address(RVA = "0xAEAEA0", Offset = "0xAE9EA0", VA = "0x180AEAEA0")]
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: 0x060013E4 RID: 5092 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013E4")]
[Address(RVA = "0xAEB030", Offset = "0xAEA030", VA = "0x180AEB030")]
public TcpClient(string hostname, int port)
{
}
// Token: 0x060013E5 RID: 5093 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013E5")]
[Address(RVA = "0xAEAFE0", Offset = "0xAE9FE0", VA = "0x180AEAFE0")]
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: 0x17000409 RID: 1033
// (get) Token: 0x060013E6 RID: 5094 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x060013E7 RID: 5095 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000409")]
public Socket Client
{
[Token(Token = "0x60013E6")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return null;
}
[Token(Token = "0x60013E7")]
[Address(RVA = "0x415800", Offset = "0x414800", VA = "0x180415800")]
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: 0x1700040A RID: 1034
// (get) Token: 0x060013E8 RID: 5096 RVA: 0x000091C8 File Offset: 0x000073C8
[Token(Token = "0x1700040A")]
public bool Connected
{
[Token(Token = "0x60013E8")]
[Address(RVA = "0xAEB1E0", Offset = "0xAEA1E0", VA = "0x180AEB1E0")]
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: 0x060013E9 RID: 5097 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013E9")]
[Address(RVA = "0xAEA610", Offset = "0xAE9610", VA = "0x180AEA610")]
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: 0x060013EA RID: 5098 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013EA")]
[Address(RVA = "0xAEA520", Offset = "0xAE9520", VA = "0x180AEA520")]
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: 0x060013EB RID: 5099 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60013EB")]
[Address(RVA = "0xAEA340", Offset = "0xAE9340", VA = "0x180AEA340")]
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: 0x060013EC RID: 5100 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013EC")]
[Address(RVA = "0xAEAC90", Offset = "0xAE9C90", VA = "0x180AEAC90")]
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: 0x060013ED RID: 5101 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60013ED")]
[Address(RVA = "0xAEAD70", Offset = "0xAE9D70", VA = "0x180AEAD70")]
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: 0x060013EE RID: 5102 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013EE")]
[Address(RVA = "0xAEA4E0", Offset = "0xAE94E0", VA = "0x180AEA4E0")]
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: 0x060013EF RID: 5103 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013EF")]
[Address(RVA = "0xAEAB80", Offset = "0xAE9B80", VA = "0x180AEAB80", 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: 0x060013F0 RID: 5104 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013F0")]
[Address(RVA = "0x8A0300", Offset = "0x89F300", VA = "0x1808A0300", Slot = "4")]
public void Dispose()
{
}
/// <summary>Frees resources used by the <see cref="T:System.Net.Sockets.TcpClient" /> class.</summary>
// Token: 0x060013F1 RID: 5105 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013F1")]
[Address(RVA = "0xAEACF0", Offset = "0xAE9CF0", VA = "0x180AEACF0", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x060013F2 RID: 5106 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013F2")]
[Address(RVA = "0xAEB200", Offset = "0xAEA200", VA = "0x180AEB200")]
private void initialize()
{
}
// Token: 0x04000C86 RID: 3206
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000C86")]
private Socket m_ClientSocket;
// Token: 0x04000C87 RID: 3207
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000C87")]
private bool m_Active;
// Token: 0x04000C88 RID: 3208
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000C88")]
private NetworkStream m_DataStream;
// Token: 0x04000C89 RID: 3209
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000C89")]
private AddressFamily m_Family;
// Token: 0x04000C8A RID: 3210
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x4000C8A")]
private bool m_CleanedUp;
}
}