[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Network on/off notifications
From: |
Johannes Fortmann |
Subject: |
Re: Network on/off notifications |
Date: |
Sun, 30 Oct 2005 15:22:05 +0100 |
Am 30.10.2005 um 13:30 schrieb Rogelio M. Serrano Jr.:
Slightly off topic question. How does the network interface in Mac
OS X tell the system programs that the network card is ready? So
user apps can be notified that the ethernet card is ready and they
can now use the network?
In linux with hotplug i have a set of scripts that start all the
network programs after the interface is configured. I was looking
for a way to tell the user apps that they can now use the network.
This is done via the SystemConfiguration framework, (docs at http://
developer.apple.com/documentation/Networking/Conceptual/
SystemConfigFrameworks/index.html ), specifically look for
SCNetworkReachabilityCreateWithAddress and
SCNetworkReachabilityScheduleWithRunLoop .
Greetings,
Johannes
smime.p7s
Description: S/MIME cryptographic signature