Just to make sure I'm not once again doing something dumb or stupid: this notification only gets sent to the application that loads & starts the VPN? If I want some other process to be aware of it, I have to use the SC* APIs?
this notification only gets sent to the application that loads & starts the VPN?
Correct.
If I want some other process to be aware of it, I have to use the
SC*
APIs?
That’s a more complex question. To start, System Configuration framework is only available on macOS. Beyond that, it kinda depends on what specific state transitions the other processes care about:
-
For basic stuff it may be better for the other processes to use Network framework.
-
For highly detailed stuff, you could have your NE sysex vend information via its XPC service.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"