ping

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalInterfaceDownError

type ExternalInterfaceDownError struct {
	snet.SCMPExternalInterfaceDown
	Path spath.Path
}

func (ExternalInterfaceDownError) Error

type InternalConnectivityDownError

type InternalConnectivityDownError struct {
	snet.SCMPInternalConnectivityDown
	Path spath.Path
}

func (InternalConnectivityDownError) Error

type Pinger

type Pinger struct {
	Replies <-chan Reply
	// contains filtered or unexported fields
}

func NewPinger

func NewPinger(ctx context.Context,
	dispatcher reliable.Dispatcher,
	local *snet.UDPAddr,
) (*Pinger, error)

func (*Pinger) Close

func (p *Pinger) Close() error

func (*Pinger) Drain

func (p *Pinger) Drain(ctx context.Context)

func (*Pinger) Send

func (p *Pinger) Send(ctx context.Context, remote *snet.UDPAddr,
	sequence uint16, size int) error

type Reply

type Reply struct {
	Received time.Time
	Source   snet.SCIONAddress
	Path     spath.Path
	Size     int
	Reply    snet.SCMPEchoReply
	Error    error
}

func (*Reply) RTT

func (r *Reply) RTT() time.Duration

Jump to

Keyboard shortcuts

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