PingManager
PingManager copied to clipboard
Supports multiple pings at the same time, and greatly reduces thread resource consumption
PingManager
Supports multiple pings at the same time, and greatly reduces thread resource consumption
CocoaPods
To include PingManager in a project using CocoaPods, you just add PingManager to your Podfile, for example:
platform :ios, '10.0'
target 'MyApp' do
use_frameworks!
pod 'PingManager'
end
Example

Usage
for host in hostArray{
let ping = Ping()
ping.delegate = self
ping.host = host
PingMannager.shared.add(ping)
}
PingMannager.shared.setup {
$0.timeout = self.timeout
$0.pingPeriod = self.period
$0.startPing()
}