flag.BoolVar(&neverstop, "t", true, "Ping 指定的主机,直到停止。")...= size
argsmap["t"] = neverstop
for _, host := range args {
go ping...(host string, c chan int, args map[string]interface{}) {
var count int
var size int..., host, time.Duration(timeout*1000*1000))
ip := conn.RemoteAddr()
fmt.Println("正在 Ping...count--
}
stat(ip.String(), sendN, lostN, recvN, shortT, longT, sumT)
c