网络相关
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
258 B

package network
import (
// "fmt"
"testing"
)
func Test_Ping(t *testing.T) {
str := "10.0.100.10"
ret := Ping(str)
fmt.Println(ret)
}
func Test_CanConnect(t *testing.T) {
ip := "10.0.106.212"
port := ""
ret := CanConnect(ip, port)
t.Log(ret)
}