Registry / networking / servak-go-fastping

servak-go-fastping

JSON →
library0.0.0-20160802140958-5718d12e20a0gogounverified

ICMP ping library for sending ECHO REQUEST packets quickly.

go get github.com/servak/go-fastping
INSTALL
IMPORT
SIG · SERVAK-GO-FASTPING
S
servak-go-fastping
networkinggov0.0.0-20160802140958-5718d12e20a0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

fastping
github.com/servak/go-fastping

Ping an IP address and handle responses.

package main import ( "fmt" "github.com/servak/go-fastping" "net" "time" ) func main() { p := fastping.NewPinger() ra, _ := net.ResolveIPAddr("ip4:icmp", "127.0.0.1") p.AddIPAddr(ra) p.OnRecv = func(addr *net.IPAddr, rtt time.Duration) { fmt.Printf("IP %s received, RTT %v\n", addr, rtt) } p.Run() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20160802140958-5718d12e20a0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
1
Resources
servak-go-fastping — go get servak-go-fastping · libregistry