Re: does SCNetworkCheckReachabilityByName work?
Re: does SCNetworkCheckReachabilityByName work?
- Subject: Re: does SCNetworkCheckReachabilityByName work?
- From: Quinn <email@hidden>
- Date: Tue, 20 Aug 2002 10:27:12 +0100
At 18:18 -0700 19/8/02, Chris Silverberg wrote:
I am trying to use SCNetworkCheckReachabilityByName to detect whether
contacting a website is likely to cause PPP to dial. When i call this
function on 10.1.5, it returns true... however flags is zero. This doesn't
make sense to me... shouldn't at least one of the defined flags in
SCNetwork.h be set? Or does 0 have a special meaning that isn't documented?
You're programming in CodeWarrior, right? The problem is that
SCNetworkConnectionFlags is an enum, and GCC (which is what we build
the system with) assumes that "enums are always ints". If you turn
on "enums are always ints" (and rebuild your any libraries to match)
things should work just fine.
Unfortunately the CW stationery doesn't turn this on for Mach-O
builds; Metrowerks knows about this (it's in one of their recent Read
Me's) and will probably fix it RSN.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.