pinger

package
v0.0.0-...-7a3883e Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PingTimeout = 1
)

Constants

Variables

This section is empty.

Functions

func CheckSum

func CheckSum(data []byte) uint16

CheckSum ping data

func Connectable

func Connectable(ip string, port int) bool

Connectable by IP and port

func Ping

func Ping(ip string) bool

Ping IP if pingable

Types

type ICMP

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

ICMP struct

Jump to

Keyboard shortcuts

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