开发者

Ping webserver when iphone app loads

开发者 https://www.devze.com 2023-01-16 09:22 出处:网络
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开发者

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消