I want to provide certain timeout at socket.connect() method , i don't want to use beginConnection method of socket as synchronous connection to socket is required, and need time out only at connect rather than send and receive. Is their any way to do so?
Asked
Active
Viewed 527 times
0
-
1See [this answer](http://stackoverflow.com/a/4708790/703016). – user703016 Apr 16 '12 at 13:28
-
this doesnt help as it is a time out for send and recieve data not the one for connect. – ankush Apr 16 '12 at 13:30
-
It is. Read it more carefully. – user703016 Apr 16 '12 at 13:31