how to reduce time out time for "connect"
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?