how to reduce time out time for "connect"
hi all
I am using int connect(int socket, const struct sockaddr *address,socklen_t address_len); its taking to much time for displaying message "Unable to connect to remote host: Connection timed out" I want to set time out time for 5 sec only. How can I do this? |
Look at using setsockopt() with the SO_RCVTIMEO and SO_SNDTIMEO options.
|
All times are GMT -5. The time now is 04:20 PM. |