Wait for a socket to get into the connected state
int sk_stream_wait_connect(struct sock * sk, long * timeo_p);
sk
sock to wait on
timeo_p
for how long to wait
Must be called with the socket locked.