golang测试是否能ping通


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

type Statistics struct {

    // PacketsRecv is the number of packets received.

    PacketsRecv int

 

    // PacketsSent is the number of packets sent.

    PacketsSent int

 

    // PacketLoss is the percentage of packets lost.

    PacketLoss float64

 

    // IPAddr is the address of the host being pinged.

    IPAddr *net.IPAddr

 

    // Addr is the string address of the host being pinged.

    Addr string

 

    // Rtts is all of the round-trip times sent via this pinger.

    Rtts []time.Duration

 

    // MinRtt is the minimum round-trip time sent via this pinger.

    MinRtt time.Duration

 

    // MaxRtt is the maximum round-trip time sent via this pinger.

    MaxRtt time.Duration

 

    // AvgRtt is the average round-trip time sent via this pinger.

    AvgRtt time.Duration

 

    // StdDevRtt is the standard deviation of the round-trip times sent via

    // this pinger.

    StdDevRtt time.Duration

}

更多golang知识请关注PHP中文网golang教程栏目。

以上就是golang测试是否能ping通的详细内容,更多文章请关注木庄网络博客!!

返回前面的内容

相关阅读 >>

手撸golang 行为型设计模式 备忘录模式

聊聊storagetapper的lock

golang 超时控制代码模版

go cassandra 示例2

kubeedge v1.3部署指南

go并发编程实战学习(一)

05 golang内置的运算符

rust 内存管理

使用go defer时要注意这两处!

golang怎么解析json格式

更多相关阅读请进入《golang》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...