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() calls (probably accept() too, but I didn’t try).
Guess how I found out
Tags: c++, gnu/linux, network, sockets
This entry was posted
by Ivan Vučica
on Saturday, August 22nd, 2009 at 6:57 pm
and is filed under programming, Uncategorized, unix.
You can follow any responses to this entry through the RSS 2.0 feed. Personal web site
You can leave a response, or trackback from your own site.