SimplePingHelper
SimplePingHelper copied to clipboard
How to perform a Ping in an iPhone app
Hi, I would like to know in detail what is the use of the following function. Anybody could you please explain in detail because I am facing timeout issue while...
[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(pingAddress) userInfo:nil repeats:YES]; ping a series of IPs, it will block the main thread
It looks like didReceivePingResponsePacket is never called. The timeout occurs and the ping fails. Even if I change the timeout to 10 seconds it is never fired once.....any ideas? If...
was wondering if there was a way to get ttl and ping time.
`64 bytes from 123.30.53.19: icmp_seq=0 ttl=249 time=2.587 ms`, how to get this? just like when ping on mac terminal.
you can use SimplePingHelper like: ``` [SimplePingHelper ping:@"www.apple.com" callback:^(NSNumber *b){ if(b.boolValue) { NSLog(@"%@", @"success"); [self log:@"success"]; } else { NSLog(@"%@", @"failure"); [self log:@"failure"]; } }]; ``` I also add ARC...