pinging

package
v0.0.0-...-dbf2142 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PingSize = 32

	ServiceName = "PureGamer.ping"
)

Variables

This section is empty.

Functions

func Ping

func Ping(ctx context.Context, h host.Host, p peer.ID) (time.Duration, error)

func PingICMP

func PingICMP(host string, port uint64) (time.Duration, error)

func PingTCP

func PingTCP(host string, port uint64) (time.Duration, error)

func Register

func Register(node *model.Node) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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