naptics / PlainPing

a very plain ping interface in swift
MIT License
58 stars 21 forks source link

All completed callback #25

Open matt-matt1 opened 4 years ago

matt-matt1 commented 4 years ago

First: Great tool! If I send a list of addresses to ping, I can get the results of addresses that has latency (and if any, addresses with errors). Usually I print each immediately, but if I wanted to put then in an array I need to know when all in finished to then do something else. If every address returned a response (such as: UP / DOWN / ERROR) then I could count the number of hosts input and number of responses. (When equal then completed...) However only results for latency (and if any, error) are returned. So is there a way to test a list and determine when all is finished?