7 instantiations of TcpClient
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
TargetPickerUi.cs (1)
117var browserDebugClientConnect = new TcpClient();
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
..\..\..\..\test\Libraries\Microsoft.Extensions.Diagnostics.Probes.Tests\TcpEndpointProbesServiceTests.cs (1)
102using TcpClient tcpClient = new TcpClient();
Microsoft.TestPlatform.CommunicationUtilities (2)
SocketClient.cs (1)
42_tcpClient = new TcpClient { NoDelay = true };
SocketCommunicationManager.cs (1)
176_tcpClient = new TcpClient { NoDelay = true };
System.Net.Mail (1)
System\Net\Mail\SmtpConnection.cs (1)
45_tcpClient = new TcpClient();
System.Net.Sockets (2)
System\Net\Sockets\TCPListener.cs (2)
206return new TcpClient(acceptedSocket); 240new TcpClient(await task.ConfigureAwait(false));
27 references to TcpClient
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
TargetPickerUi.cs (2)
59static async Task<string> ReceiveMessageLoop(TcpClient browserDebugClientConnect, CancellationToken token) 117var browserDebugClientConnect = new TcpClient();
Microsoft.Extensions.Diagnostics.Probes (1)
..\..\..\..\src\Libraries\Microsoft.Extensions.Diagnostics.Probes\TcpEndpointProbesService.cs (1)
87using var client = await _listener.AcceptTcpClientAsync(cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
..\..\..\..\test\Libraries\Microsoft.Extensions.Diagnostics.Probes.Tests\TcpEndpointProbesServiceTests.cs (1)
102using TcpClient tcpClient = new TcpClient();
Microsoft.TestPlatform.CommunicationUtilities (9)
SocketClient.cs (1)
24private readonly TcpClient _tcpClient;
SocketCommunicationManager.cs (2)
39private TcpClient? _tcpClient; 121var client = await _tcpListener.AcceptTcpClientAsync();
SocketServer.cs (5)
24private readonly Func<TcpListener, Task<TcpClient>> _acceptClientAsync; 30private TcpClient? _tcpClient; 55Func<TcpListener, Task<TcpClient>> acceptClientAsync) 131TcpClient? client = null; 165private void OnClientConnected(TcpClient client)
TcpClientExtensions.cs (1)
23this TcpClient client,
Microsoft.TestPlatform.CrossPlatEngine (1)
Client\MTP\MtpServerConnection.cs (1)
43private TcpClient? _client;
netstandard (1)
netstandard.cs (1)
1283[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.TcpClient))]
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
773[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.TcpClient))]
System.Net.Mail (1)
System\Net\Mail\SmtpConnection.cs (1)
31internal TcpClient? _tcpClient;
System.Net.Sockets (10)
System\Net\Sockets\NetworkStream.cs (4)
357/// If a <see cref="NetworkStream"/> was associated with a <see cref="TcpClient"/>, the <see cref="Close(int)"/> method 358/// will close the TCP connection, but not dispose of the associated <see cref="TcpClient"/>. 373/// If a <see cref="NetworkStream"/> was associated with a <see cref="TcpClient"/>, the <see cref="Close(int)"/> method 374/// will close the TCP connection, but not dispose of the associated <see cref="TcpClient"/>.
System\Net\Sockets\TCPListener.cs (6)
196public TcpClient AcceptTcpClient() 218public TcpClient EndAcceptTcpClient(IAsyncResult asyncResult) => 219EndAcceptCore<TcpClient>(asyncResult); 233public Task<TcpClient> AcceptTcpClientAsync() => AcceptTcpClientAsync(CancellationToken.None).AsTask(); 235public ValueTask<TcpClient> AcceptTcpClientAsync(CancellationToken cancellationToken) 239static async ValueTask<TcpClient> WaitAndWrap(ValueTask<Socket> task) =>