End a socket listen() operation
-
Widows 7, Visual Studio 2008, C++, socket operations My app posts a listen using a socket set to non-blocking. The debugger steps over that line, with a noticeable pause, and continues. The netstat command showed that a listen was in progress. I can think of a few possibilities to end the listen(). 1. Client connects 2. Call some method to terminate the listen. 3. Delete the object that initiated the listen If the client does not connect, how should the app close the listen() operation?
Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com
-
Widows 7, Visual Studio 2008, C++, socket operations My app posts a listen using a socket set to non-blocking. The debugger steps over that line, with a noticeable pause, and continues. The netstat command showed that a listen was in progress. I can think of a few possibilities to end the listen(). 1. Client connects 2. Call some method to terminate the listen. 3. Delete the object that initiated the listen If the client does not connect, how should the app close the listen() operation?
Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com
Typically in Windows just closing the socket causes the listen to terminate.
-
Typically in Windows just closing the socket causes the listen to terminate.
I will do it that way. Thank you.
Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com