I have a UDP socket server application.I am running a worker thread to receive data from Client and send reply.
Inside worker thread I am using Select() to check whether any data arrives and the timeout for the select() function is 12 milliseconds.When closing the worker thread, the select() function is not returning immediately, after the timeout only it returns.
How to stop select() immediately when terminating the worker thread?
I need to implement this in Windows.