In c-sharp, how can the socket on the server detect whether the client is not connected?

when the client is physically disconnected, such as artificially disconnecting the network, how can the socket of the server detect that the client can no longer connect to the server?

Jun.22,2021

Let the client send heartbeats regularly?

if the network is peer-to-peer, you can send a packet to see if there is any pingback or other

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34f72-2bf5c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34f72-2bf5c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?