Results 1 to 2 of 2

Thread: This Takes 4EVER!

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026

    This Takes 4EVER!

    When I try to do the following:

    VB Code:
    1. Client = New TcpClient(server, port)

    It takes forever when I input an invalid server. Is there any way to speed up the process of seeing if the server and port are legit before trying to create a new client?

    Thanks,

    SQ1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  2. #2
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425
    Can you ping the server? If so, use the Ping API call to ping the server first.

    If not, connect en set your own timer for a time out...
    "Experience is something you don't get until just after you need it."

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