Results 1 to 3 of 3

Thread: [2005] socket timeout or an alternative

  1. #1

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    [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!

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: [2005] socket timeout or an alternative

    ReceiveTimeout doesn't do what you want?
    My usual boring signature: Nothing

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    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
  •  



Click Here to Expand Forum to Full Width