Internet Connection

Discussion in 'Mac Programming' started by kanchana, Jul 24, 2008.

  1. kanchana macrumors newbie

    Joined:
    Jul 22, 2008
    #1
    How to find whether internet is connected or not through code. As I have to do different function depending on internet connection.Can any one help me out?
     
  2. kepner macrumors 6502

    Joined:
    Sep 7, 2003
    #2
    I need to know the same thing. I notice that Safari, for example, can tell immediately whether or not there's an Internet connection, how can I get my software to do that? Specifically, I'm interested in doing this with a widget, so if you have any additional information on how I could do this with a widget, I'd appreciate it.
     
  3. paos macrumors newbie

    Joined:
    Aug 13, 2009
    #3
    Any idea?? I'm having the sane problem!

    Thanks
     
  4. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #4
    And what language are you coding in? I'd possibly try pinging something and if I get a hit, I know I'm connected.
     
  5. MrFusion macrumors 6502a

    Joined:
    Jun 8, 2005
    Location:
    West-Europe
    #5

Share This Page