开发者

Getting notified when a VPN connection disconnects

开发者 https://www.devze.com 2023-01-13 07:31 出处:网络
How can I, within my Cocoa app, get a notification when the currently running VPN开发者_运维知识库 connection disconnects? I\'m running Snow Leopard.You may be able to use the System Configuration fra

How can I, within my Cocoa app, get a notification when the currently running VPN开发者_运维知识库 connection disconnects? I'm running Snow Leopard.


You may be able to use the System Configuration framework for this. You can examine the System Configuration hierarchy with scutil(8), and you might have a look at HardwareGrowler's source code for examples of how to use the framework.

Also, documentation:

  • http://developer.apple.com/mac/library/documentation/Networking/Conceptual/SystemConfigFrameworks/
  • http://developer.apple.com/mac/library/documentation/Networking/Reference/SysConfig/
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号