Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timeout Sockect connection

Status
Not open for further replies.

pmalopez

Programmer
Joined
Dec 9, 2003
Messages
1
Location
SV
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top