Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 505 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 505 Bytes

iOSPingTester

iOS ping(ICMP)网络测试demo,用于在iOS中比较多个地址的丢包率、延迟。

测试方法

let addresses = ["blog.6ag.cn", "www.baidu.com", "www.qq.com"]

JFPingManager.getFastestAddress(addressList: addresses) { (address) in
    guard let address = address else {
        print("所有地址都没有ping通")
        return
    }
    
    print("address = \(address)")
}

测试结果

image