Re: Is PPP connected
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.