nets

package
v0.0.0-...-736094d Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHostAddr

func CheckHostAddr(addr string) bool

检测 地址是否为 IP:端口 格式

func CheckIp

func CheckIp(addr string) bool

检测是否为 IP 格式

func GetFreePort

func GetFreePort(bind string) int

获取一个空闲的TCP端口

func GetIpList

func GetIpList() ([]string, error)

func IsActiveTCPAddr

func IsActiveTCPAddr(addr string) (bool, error)

func IsUsableTcpAddr

func IsUsableTcpAddr(addr string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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