util

package
v1.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

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