I'm looking to implement a Ping class in Cocoa-Touch. From the googling I have done and old c code I have looked at, it seems using the ICMP protocol is the best way to go.
I guess my question is, is ICMP supported in the iPhone SDK, and if not, is there anything in the CoreFoundation Network classes I could use instead? I have had a look at CFHost and CFHostStartInfoResolution(host, kCFHostReachability, &error) but that is more to check if a host exists rather than get the time to respond etc.