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?