netUtils

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSum

func CheckSum(data []byte) uint16

func CurrentIP

func CurrentIP() (string, error)

func GetRemoteAddress

func GetRemoteAddress(headers map[string][]string, remoteIP string) string

func Ping

func Ping(addr string) (int, error)

func PingTimeOut

func PingTimeOut(addr string, milliscond int) (int, error)

func TelNet

func TelNet(ip, port string) bool

Types

type ICMP

type ICMP struct {
	Type        uint8
	Code        uint8
	Checksum    uint16
	Identifier  uint16
	SequenceNum uint16
}

Jump to

Keyboard shortcuts

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