[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: socket connect timeout
Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>
c) Once the socket is writable, you might be connected, or you might have an
error. When you try to use send() or recv() you'll get an error message if
the connection failed. Check for that.
I forgot to say... An alternative to using send() or recv() to check for
errors, is to use getsockopt() to check SO_ERROR.
This is nice when you want to put the connection routine into a
subprocedure that's separate from any sending/receiving routine.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------