|
-
Jul 3rd, 2007, 06:11 PM
#1
Thread Starter
Frenzied Member
[2005] socket timeout or an alternative
After researching, it seems there is no way to set the connect timeout of a socket. Is this correct? If so, is there an alternative to Socket that I can use? I am sick of waiting so long to test connections!
-
Jul 3rd, 2007, 08:47 PM
#2
Re: [2005] socket timeout or an alternative
ReceiveTimeout doesn't do what you want?
My usual boring signature: Nothing
 
-
Jul 3rd, 2007, 08:50 PM
#3
Re: [2005] socket timeout or an alternative
If you are just looking for a connection timeout, how about calling the connect asynchronously. You could have a handful of different connections going at one, and wouldn't be bound up waiting for any one to connect. You could also abort the thread that was attempting the connection after a time interval that you wanted via a timer in your main thread.
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|