netool

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ICMPDelay

func ICMPDelay(ip string, count uint) (time.Duration, error)

ICMPDelay icmp delay

func LookupIP

func LookupIP(domain string) ([]net.IP, error)

LookupIP ...

func LookupWithServer

func LookupWithServer(domain string, servers []string, maxRetry int) (a []string, cname []string, ns []string, lastErr error)

LookupWithServer ...

func SingleICMPDelay

func SingleICMPDelay(ip string) (time.Duration, error)

SingleICMPDelay single icmp delay

Types

type ICMP

type ICMP struct {
	Type        uint8
	Code        uint8
	CheckSum    uint16
	Identifier  uint16
	SequenceNum uint16
}

ICMP ...

Jump to

Keyboard shortcuts

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