pinger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandShakeTCP

func HandShakeTCP(dst net.IP, port int, timeout time.Duration) error

HandShakeTCP try tcp hand shake

func SendICMPEcho

func SendICMPEcho(id, seq int, addr net.UDPAddr, timeout time.Duration) (net.Addr, *icmp.Message, error)

SendICMPEcho send ICMP echo request and wait for reply.

func SendUDPPacket

func SendUDPPacket(dst net.IP, port int) error

SendUDPPacket send udp msg

Types

This section is empty.

Jump to

Keyboard shortcuts

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