Announcer for proxy host/port updates?

Hello,

I have some networking code that checks whether a proxy is configured via:

   `CFStringRef host = (CFStringRef)CFDictionaryGetValue(globalSettings, kCFNetworkProxiesHTTPProxy);`

   `CFNumberRef port = (CFNumberRef)CFDictionaryGetValue(globalSettings, kCFNetworkProxiesHTTPPort);`

I need to do this fairly frequently, so I am wondering if there is an announcer I can subscribe to instead?

What platform is this on?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi Quinn,

This is on iOS (mobile).

I can’t think of any good way to be notified of changes to these settings on iOS and its descendents.

What are you using these settings for? Is it because you have your own HTTP stack?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Is it because you have your own HTTP stack?

Yep, exactly.

Announcer for proxy host/port updates?
 
 
Q