I currently have an asynchronous application for TCP / IP C # WinForms sockets, which is a server application. The application stores persistent sockets for clients. I would like to implement a heartbeat package to detect semi-open connections.
I initially thought about creating a loop and sending a heartbeat to my entire socket collection every xx number of seconds. However, I think that would be bad for performance.
I think I need to somehow shake the heartbeat and send several hundred sockets at once. Does anyone have experience / methods / implementations to effectively accomplish this?
source share