site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Oct 14, 2006, at 4:59 PM, Ben Dougall wrote: I want to call this function: Boolean SCNetworkCheckReachabilityByAddress ( const struct sockaddr *address, int addrlen, SCNetworkConnectionFlags *flags ); A struct sockaddr is: struct sockaddr { u_char sa_len; /* total length */ u_char sa_family; /* address family */ char sa_data[14]; /* actually longer; address value */ }; Why not use SCNetworkReachabilityCreateWithName? -Shawn _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I don't know how the struct should be filled in in order to call the above function. Can anyone point me to some example code that fills that struct in for a normal web address e.g. amazon.com? Also in an email on the Cocoa developer list you stated that you wanted to target 10.2 and later. The above API is only available on 10.3 and later (not that you couldn't use it on 10.3 and later and use something when running on 10.2). This email sent to site_archiver@lists.apple.com