Hello,
I have a thread which creates a socket and listens, creating new worker threads upon connections. I also have a GUI thread.
When the user closes the main window of my program, how can I stop the server thread from listen()ing? I've tried calling shutdown(g_sockServer, SD_RECEIVE) but that doesn't appear to achieve anything.
This should be achievable without the use of Asynchronous Winsock.