How can I set a connection time out manually?

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-05-08T12:02:28Z Indexed on 2010/05/08 12:08 UTC
Read the original article Hit count: 140

Filed under:
|
|

I use

connect(socketfd, (struct sockaddr*)&remoteAddr, sizeof(remoteAddr))

to connect my iPhone to a computer (over WIFI) and it works fine so far. However if the computer is out of reach, my iPhone tries to establish a connection for more than a min.

Is there a posibility to set the time manually out to a new value, e.g. 15 sec?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode