Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Monitoring PPP with SCNetworkConnectionCreateWithServiceID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Monitoring PPP with SCNetworkConnectionCreateWithServiceID



Is it possible to use SCNetworkConnectionCreateWithServiceID to monitor
events on a PPP connection made outside of your application (via "Internet
Connect" for instance)?

It doesn't seem to work for me.

If I use this call to create a connection reference and then make the
connection myself, my application callback gets called with state change
results.  However, if I make this connection reference as follows:


connection = SCNetworkConnectionCreateWithServiceID(NULL,
foundServiceID,__PPPCallback, &context);


My "__PPPCallback" function never gets called if the connection has already
been made outside of my program for service/location specified by
foundServiceID.

Do I really need to poll status to implement a connection monitor for PPP or
am I missing something?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.