iOS Detecting connection speed or type [duplicate]
问题 Possible Duplicate: Iphone detect 3g or wifi is there a way to get the current network speed or if the device is on EDGE/3G/GPRS? I can use Reachability to distinguish WiFI from WMAN but that's not enough for my application. 回答1: If you really need to know, you will have to test for it. Setup a connection to a known server that has low latency. In a separate thread, mark the time (Time A) and send a packet (make sure it's one packet). Wait on that thread. Mark the time of the first packet