IPResult is one IP probe's outcome.
| 12 | |
| 13 | // IPResult is one IP probe's outcome. |
| 14 | type IPResult struct { |
| 15 | IP netip.Addr |
| 16 | Port uint16 |
| 17 | Reachable bool |
| 18 | RTT time.Duration |
| 19 | Err string |
| 20 | } |
| 21 | |
| 22 | // ProbeIP dials ip:port with cfg.ConnectTimeout and measures RTT. This is a |
| 23 | // plain TCP connect; no TLS. Returns Reachable=true only on successful |