blog.vucica.net
close() of listening socket from another thread
Just a warning.Calling close() on listening socket in another thread will NOT prevent another connection from being made. Instead, you must call shutdown(). This should abort existing select() call…