title: iOS - Ping with timeout
body: <p>I'm using Apple's "Simple Ping" example and it has almost all features that I need, but I don't know where I can set timeout of each packet. It seems that it isn't possible because function that is used to write data to socket doesn't have any timeout parameters. Does anybody have idea to change this app to get ability to set timeout like in windows ping command? By timeout I mean time for each packet sent to be discarded after waiting for response too long.</p>
  
  <p>Windows ping command - timeout I need to have:</p>
  
  <p>"-w Timeout : Specifies the amount of time, in milliseconds, to wait for the Echo Reply message that corresponds to a given Echo Request message to be received. If the Echo Reply message is not received within the time-out, the "Request timed out" error message is displayed. The default time-out is 4000 (4 seconds)."</p>
  
  <p>Simple Ping code I'm using:
  <a href="http://developer.apple.com/library/mac/#samplecode/SimplePing/Introduction/Intro.html">http://developer.apple.com/library/mac/#samplecode/SimplePing/Introduction/Intro.html</a></p>