How does one find out the timeout value on the connect() function? I
know the value is set at the pleasure of the system, so how do I find
out what it is?
Also, I've heard that you can use SIGALARM (with the help of
alarm()) to cancel a blocking function like connect(), but what I
don't quite get is how to use the handle. I've read that I need to
write a handler for SIGALARM, but how does such a handler affect
connect()? I've also read that I set the handler to SIG_IGN. I don't
believe everything I read....