• 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: Is PPP connected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is PPP connected


  • Subject: Re: Is PPP connected
  • From: Ryan McGann <email@hidden>
  • Date: Mon, 30 Sep 2002 23:21:29 -0700

Hi,
I am using a modified version of the below code to detect whether or not
that a machine is actually connected to the internet via PPP for MacOS 9.x,
I am now doing a MacOS-X version, but the code fails with a bad option for
CC_OPT_GETMISCINFO.

You can use the SystemConfiguration framework for this also. See SCNetwork.h inside the SystemConfiguration framework. This will tell you for a given address or hostname whether a connection is required, and if a specific address will require a dial. If you want to know about PPP specifically, and not whether the computer has a network connection in general, you'll need to dig deeper into the SystemConfiguration framework. In that case, I highly recommend you check out MoreSCF available from Apple's developer web site. It has funcitons for getting every service (hardware entity) from a set (location) and from there you can determine if that service uses PPP, and if it's currently active.

Ryan
email@hidden
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Is PPP connected
  • Previous by thread: Re: Is PPP connected
  • Next by thread: Re: Re(2): programatically obtaining "Secure Web" proxy settings
  • Index(es):
    • Date
    • Thread