I have made an ile program (client) that connect with a server outside my LAN with sockets but my problem is that when the server is down and the client program tries to connect the timeout is too long (about 2 1/2 mins) and I don't know how to configure this time or where to configure.
I'm using the connect api.
I had read about select() api but I don't know how to implement it.
Somebody knows how to modify the timeout?
I'm using the connect api.
I had read about select() api but I don't know how to implement it.
Somebody knows how to modify the timeout?