nettools

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPort

func CheckPort(addr string) bool

CheckPort checks if the port is open

func IPToUint32

func IPToUint32(ip string) (uint32, error)

IPToUint32 将IPv4地址转换为uint32整数

func MustIPToUint32

func MustIPToUint32(ip string) uint32

MustIPToUint32 将IPv4地址转换为uint32整数

func MustLocalPrimearyIP

func MustLocalPrimearyIP() net.IP

MustLocalPrimearyIP .

func Uint32ToIP

func Uint32ToIP(n uint32) net.IP

Uint32ToIP 将uint32整数转换为IPv4地址

Types

This section is empty.

Jump to

Keyboard shortcuts

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