Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.3% on proxy.golang.org

proxy.golang.org : github.com/scientiacoder/go-PingClient

Package pingclient is a simple but powerful ICMP echo (ping) library. Inspired by go-fastping and go-ping Here is a very simple example that sends and receives three packets: Here is an example that pings github.com and 8.8.8.8 command: pingClient := ping.New() pingClient.Add("github.com") pingClient.Add("8.8.8.8") // Listen for Ctrl-C. c := make(chan os.Signal, 1) signal.Notify(c, os.Interrupt) pingClient.OnFinish = func(stats []*ping.Statistics) { err := pingClient.Run() It sends ICMP Echo Request packet(s) and waits for an Echo Reply in response. If it receives a response, it calls the OnRecv callback. When it's finished, it calls the OnFinish callback. For a full ping example, see "cmd/ping.go".

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/scientiacoder/go-%21ping%21client
Keywords: go, icmp, ping, yaml
License: MIT
Latest release: about 3 years ago
First release: over 3 years ago
Namespace: github.com/scientiacoder
Stars: 2 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 17 days ago

    Loading...
    Readme
    Loading...