udp

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultUDPPort = 53

DefaultUDPPort is the well-known port for generic UDP probes.

View Source
const ProtocolName = "udp"

ProtocolName is the registered name for the UDP protocol.

Variables

This section is empty.

Functions

This section is empty.

Types

type UDP

type UDP struct{}

UDP implements a generic UDP send/receive probe. It sends an empty datagram and waits for any response or ICMP error.

func (*UDP) DefaultPort

func (u *UDP) DefaultPort() int

func (*UDP) Description

func (u *UDP) Description() string

func (*UDP) Greet

func (u *UDP) Greet(ctx context.Context, host string, port int, opts ...greet.GreetOption) (*greet.GreetResult, error)

func (*UDP) Name

func (u *UDP) Name() string

func (*UDP) Transport

func (u *UDP) Transport() greet.Transport

Jump to

Keyboard shortcuts

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