• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: does SCNetworkCheckReachabilityByName work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >does SCNetworkCheckReachabilityByName work? (From: Chris Silverberg <email@hidden>)

  • Prev by Date: Re: does SCNetworkCheckReachabilityByName work? (solved)
  • Next by Date: Diff. between ioctl and fcntl
  • Previous by thread: Re: does SCNetworkCheckReachabilityByName work? (solved)
  • Next by thread: Diff. between ioctl and fcntl
  • Index(es):
    • Date
    • Thread