rebuild tcping

This commit is contained in:
mazhuang
2021-11-09 18:44:17 +08:00
parent 6f74e60444
commit 83c63e975e
5 changed files with 148 additions and 68 deletions

19
tcping/tcping.go Normal file
View File

@@ -0,0 +1,19 @@
package tcping
import (
"net"
"sync"
"CloudflareSpeedTest/utils"
)
type Tcp struct {
wg *sync.WaitGroup
mutex *sync.Mutex
ip net.IPAddr
tcpPort int
pingCount int
csv *[]utils.CloudflareIPData
control chan bool
progressHandler func(e utils.ProgressEvent)
}