Re(2): Distinguishing between ppp and ethernet
Re(2): Distinguishing between ppp and ethernet
- Subject: Re(2): Distinguishing between ppp and ethernet
- From: Jens Bauer <email@hidden>
- Date: Fri, 31 May 2002 23:41:43 +0200
Hi Quinn,
On Fri, 31 May, 2002, Quinn <email@hidden> wrote:
>
>Also, there is currently no way of determining whether a connection
>
>will cause a dialup using rb sockets...they have a pppstatus but
>
>obviously its value is only relevant if the user is actually using a
>
>ppp interface....and there is no way of determining this without
>
>initiating a connection and seeing whether the pppstatus changes.
>
>
OK, this is really easy. System Configuration framework provides two
>
high-level APIS, SCNetworkCheckReachabilityByAddress and
>
SCNetworkCheckReachabilityByName, that will tell you if connecting to
>
a specific address is likely to trigger a dial.
Is this the API-call that Software Update (and QuickTime updater) uses
when it "only will dial when you have an active internet connection" ?
-Or do they monitor when there are data sent to the network; eg. a name-
lookup ?
Love,
Jens
--
Jens Bauer, Faster Software.
-Let's make the World better, shall we ?
_______________________________________________
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.