ping

package
v0.0.0-...-27f6abc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PingCount   int
	PingTimeOut int
)

Functions

This section is empty.

Types

type PingTestResult

type PingTestResult struct {
	Addr    string
	PkgSent int
	PkgRecv int
	AvgRtt  int
	MaxRtt  int
	MinRtt  int
	Rtts    []int
}

type PingTester

type PingTester struct {
	LocalIP string
	IcmpID  int16
}

func NewPingTester

func NewPingTester(localIP string, icmpID int16) *PingTester

func (*PingTester) TestPing

func (t *PingTester) TestPing(addr string) (*PingTestResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL