Question on OnClose of CAsyncSocket
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi. I was wondering if anyone knows if the OnClose will be called when a connection is abnormally disconnected on the other side (power off or ethernet cable disconnected)? It does not seem to get called. Is there another way or message etc that can tell me if the ethernet is gone during this abnormal condition? I can see that if the ethernet connection is gone, the icon on the task bar seem to know right away but my application does not. Is there an API that can check this? Thanks in advance. Stan the man