]> git.saurik.com Git - apple/configd.git/blob - SystemConfiguration.fproj/reachability/server.c
configd-699.1.5.tar.gz
[apple/configd.git] / SystemConfiguration.fproj / reachability / server.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <unistd.h>
4 #include <CoreFoundation/CoreFoundation.h>
5 #include <SystemConfiguration/SystemConfiguration.h>
6 #include <SystemConfiguration/SCPrivate.h>
7
8 #include "SCNetworkReachabilityInternal.h"
9
10 int
11 main(int argc, char **argv)
12 {
13 _sc_log = FALSE; // no syslog
14 _sc_debug = TRUE; // extra reachability logging
15
16 _SCNetworkReachabilityServer_start();
17
18 SCLog(TRUE, LOG_DEBUG, CFSTR("starting CFRunLoop"));
19 CFRunLoopRun();
20 SCLog(TRUE, LOG_DEBUG, CFSTR("CFRunLoop complete"));
21
22 exit(0);
23 }