MCPcopy Create free account
hub / github.com/SamNet-dev/snix / IPResult

Struct IPResult

scanner/ip.go:14–20  ·  view source on GitHub ↗

IPResult is one IP probe's outcome.

Source from the content-addressed store, hash-verified

12
13// IPResult is one IP probe's outcome.
14type 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

Callers 1

UpdateMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected