CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Peter Cseke

Search: Search took 0.03 seconds.

  1. Replies
    110
    Views
    80,933

    Re: Detecting an internet connection.

    You should try the DNS name resolution instead of ping (gethostbyname). That will probably not be disabled by such routers.
  2. Replies
    110
    Views
    80,933

    You might however want to skip the connect part,...

    You might however want to skip the connect part, especially if you only have one update server, and you have to check the IP availability not only at startup, but for example every 5 minutes. If all...
  3. Replies
    110
    Views
    80,933

    gethostbyname :)

    I found out later, that unfortunately the above code does not work as it should for NT/2K platforms, even if the function exists.

    But I managed to solve to problem by using the gethostbyname...
  4. Replies
    110
    Views
    80,933

    Hi! If you don't want to ping, you only want...

    Hi!

    If you don't want to ping, you only want to check for a connection from a computer to another computer (LAN or WAN), you can use the following code (unfortunately no support for Win95; but...
Results 1 to 4 of 4





Click Here to Expand Forum to Full Width

Featured