• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Checking for internet connection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking for internet connection?


  • Subject: Re: Checking for internet connection?
  • From: Spencer Salazar <email@hidden>
  • Date: Sat, 14 Oct 2006 16:05:29 -0400

you could parse the output of the 'ifconfig' (no command line arguments) command, or look at the source for ifconfig and determine how it works. ifconfig is a big complicated program though so thats not an ideal solution, but it might be a start. Also, Im not sure if/ how it deals with PPP connections.

spencer

On Oct 14, 2006, at 3:37 PM, Ben Dougall wrote:


On Saturday, October 14, 2006, at 08:07 pm, j o a r wrote:


On 14 okt 2006, at 20.55, Ben Dougall wrote:

Yes it is -- that's what I'm after (if "IP network" means the internet).

It doesn't , and that's the point. As an example, if you have an AirPort as a home router, it will give you a local IP address regardless of if the AirPort itself is connected to the Internet or not. So, in that case you will have a connection to an IP network, but that network will not be connected to the Internet.

I see, OK thanks.

I'm trying to find out how to get the information that the Internet Connect app has access to and displays, specifically "connected"/"disconnected" plus the speed and time in seconds connected. This information can be got via AppleScript thus requiring the Internet Connect app to open but I'm wondering if that information can be acquired programmatically from within a Cocoa app without AS somehow? Possible? If so how? Any pointers to how to do that would be much appreciated. If not I'll just use AS as I'm doing at the moment but it's very annoying having the I.C. app open and quit periodically -- be much better if I didn't have to use AS.

Thanks, Ben.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Checking for internet connection? (From: Ben Dougall <email@hidden>)

  • Prev by Date: Re: Checking for internet connection?
  • Next by Date: Cursor does not change when moving mouse over controls.
  • Previous by thread: Re: Checking for internet connection?
  • Next by thread: Problems with hitTest and mouseDown in my subview.
  • Index(es):
    • Date
    • Thread