How to write a simple Ping method in Cocoa/Objective-C

前端 未结 7 763
一向
一向 2020-11-29 00:52

I need to write a simple ping method in Cocoa/Objective-C. It also needs to work on the iPhone.

I found an example that uses icmp, will thi

7条回答
  •  被撕碎了的回忆
    2020-11-29 01:15

    Please take note that there is an difference between the simulator and the actual iPhone. The simulator is not a true simulator like the one supplied by Android, it uses Mac OSX classes for most of the functions.

    This is particularly hell if there is a difference between the Mac OSX and iPhonew(for example the keychain).

提交回复
热议问题