ping

package module
v0.0.0-...-13b2819 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2016 License: MIT Imports: 7 Imported by: 0

README

ping

Ping ICMP echo

Documentation

Index

Constants

View Source
const ProtocolICMP = 1

ProtocolICMP Internet Control Message

Variables

View Source
var ErrNoImcpReplay = errors.New("no icmp replay")

ErrNoImcpReplay error about no icmp replay

Functions

func Ping

func Ping(address string, timeout time.Duration) bool

Ping pings requested address. It returns true on IcmpEchoReplay response, false otherwishe.

func Pinger

func Pinger(address string, timeout time.Duration) (err error)

Pinger pings requested address. It returns nil when IcmpEchoReplay is recived, error otherwishe.

Types

This section is empty.

Jump to

Keyboard shortcuts

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