icmpping

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Protocol = "icmp"

Variables

This section is empty.

Functions

func New

func New(logWriter io.Writer) anping.AnPinger

Types

type IcmpPinger

type IcmpPinger struct {
	*implement.AnPingerWrapper
	PayloadLength int
}

func (*IcmpPinger) Protocol

func (i *IcmpPinger) Protocol() string

func (*IcmpPinger) SetAddress

func (i *IcmpPinger) SetAddress(address M.Socksaddr) error

func (*IcmpPinger) Start added in v0.3.0

func (i *IcmpPinger) Start(ctx context.Context) <-chan struct{}

Jump to

Keyboard shortcuts

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