I developed a server with C code.
I used the accept()
function to keep my server listening on a giving socket.
My server is launched in a thread.
Now in other thread and for some condition I want to stop the accept()
blocking and then close the related socket.
How I can do that? Could shutdown()
do that?