Results 1 to 4 of 4

Thread: Checking internet connection..

  1. #1
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Checking internet connection..

    How to check whether the internet connection is available in the machine or not using Qt codes???

    I would like to know if the internet connection persists or not, need to ping to simple page via Google.com or yahoo. com

  2. #2
    Join Date
    Feb 2012
    Posts
    11
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Checking internet connection..

    In a "kludge" way, you could do just that, adding a system("ping google.com") and then parsing the output. There's probably a simpler, "Qter" solution though

  3. #3
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Checking internet connection..


  4. #4
    Join Date
    Nov 2010
    Posts
    82
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Checking internet connection..

    i think this method told you that the network is up not that the internet connection is.

Similar Threads

  1. Can remote compiler work over a slow internet connection?
    By Rakula in forum Installation and Deployment
    Replies: 0
    Last Post: 6th December 2011, 13:05
  2. Replies: 0
    Last Post: 11th November 2011, 19:18
  3. Setup Internet connection on Windows Mobile device.
    By sergey_m in forum Qt for Embedded and Mobile
    Replies: 7
    Last Post: 7th January 2011, 08:30
  4. Replies: 1
    Last Post: 2nd April 2010, 06:42
  5. How to detect an internet connection ?
    By ouekah in forum Newbie
    Replies: 1
    Last Post: 29th March 2010, 22:08

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.