A função TcpClient.Close do namespace System.Net.Sockets é usada em C# para encerrar a conexão do cliente TCP. Ele libera todos os recursos utilizados pelo objeto TcpClient, como o socket subjugado. Ao chamá-lo, a conexão TCP é finalizada e não é possível enviar nem receber dados. O método Close também permite que o cliente seja descartado corretamente, liberando os recursos do sistema para que sejam usados por outros processos.
System.Net.Sockets TcpClient.Close em C# (CSharp) - 60 exemplos encontrados. Esses são os exemplos do mundo real mais bem avaliados de System.Net.Sockets.TcpClient.Close em C# (CSharp) extraídos de projetos de código aberto. Você pode avaliar os exemplos para nos ajudar a melhorar a qualidade deles.