mirror of
https://github.com/XIU2/CloudflareSpeedTest.git
synced 2026-03-17 04:36:29 +08:00
rebuild tcping
This commit is contained in:
19
tcping/tcping.go
Normal file
19
tcping/tcping.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user