I’m using this SimplePing sample code by Apple: http://developer.apple.com/library/mac/#samplecode/SimplePing/Introduction/Intro.html
to ping other hosts in the LAN.
I’m using this method:
+ (SimplePing *)simplePingWithHostAddress:(NSData *)hostAddress;
Works fine, but I want to ping multiple hosts at once. I just don’t know how to do that.
I have a NSArray full of IPs (NSString). Can someone please give me an example?
Thx!
You need a fast enumeration loop.