I use the TcpClient class to write my client app.
https://docs.microsoft.com/en-us/dotnet/api/system.net.sockets.tcpclient?view=netframework-4.5.2
When the server closed, the connection will lost.
I need to handle the lost event at client app.
Use the TcpClient class, how to do this ?