Ping webserver when iphone app loads
I was wondering how I could ping a web server of mine when my application first starts. I am assuming I would do s via the appdelegate in the application? Is there any specific example I could u开发者_如何学编程se?
What is your problem actually? You want to know whether Internet and/or your server is available or you want to know when to ping it? If you want to know the network or host status then you can use Reachability sample app by Apple. This Rechability class is widely used.
精彩评论