util

package
v0.0.0-...-7291369 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HTTPAddr string
	HTTPPort string
)
View Source
var (
	EchoAddr string
	EchoPort int
)
View Source
var (
	BlackHoleAddr string
	BlackHolePort int
)

Functions

func CheckConn

func CheckConn(a net.Conn, b net.Conn) bool

CheckConn checks if two netConn were connected and work properly

func CheckPacket

func CheckPacket(a, b net.PacketConn) bool

func CheckPacketOverConn

func CheckPacketOverConn(a, b net.PacketConn) bool

CheckPacketOverConn checks if two PacketConn streaming over a connection work properly

func GeneratePayload

func GeneratePayload(length int) []byte

func GetTestAddr

func GetTestAddr() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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