ping

package
v0.0.0-...-e4d881b Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PING_ICMP_CODE = 0
	PING_START_ID  = 8000 // TODO choose this randomly
)
View Source
const DATA_56_BYTES = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
View Source
const FLOOD_INTERVAL = 0 // TODO add a flood option

Variables

View Source
var GlobalPingManager = func() *Ping_Manager {
	pm, err := NewPing_Manager()
	if err != nil {
		logs.Error.Fatal(err)
	}
	return pm
}()

Functions

This section is empty.

Types

type Ping_Manager

type Ping_Manager struct {
	// contains filtered or unexported fields
}

func NewPing_Manager

func NewPing_Manager() (*Ping_Manager, error)

func (*Ping_Manager) SendPing

func (pm *Ping_Manager) SendPing(ip *ipv4.Address, interval, timeout time.Duration, numPings uint16) error

Jump to

Keyboard shortcuts

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