Skip to content

Commit

Permalink
fix: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mitinarseny committed Jun 8, 2021
1 parent 27f88c6 commit f3345a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type Pinger struct {
c *net.UDPConn
seqs *sequences

// proto is IANA ICMP Protocol Number
proto int
}

Expand Down Expand Up @@ -145,7 +146,12 @@ func (p *Pinger) PingTimeout(dst net.IP, timeout time.Duration) (rtt time.Durati
}

type Reply struct {
// RTT is a round trip time: the interval between sending
// an ICMP Echo Request and receiving ICMP Echo Reply.
RTT time.Duration

// Err is an error occurred while sending ICMP Echo Request
// or waiting for the reply
Err error
}

Expand Down

0 comments on commit f3345a1

Please sign in to comment.