port

package
v0.4.9-alpha11 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvailablePort

func GetAvailablePort(t string) (int, error)

获取可用端口

func IsPortAvailable

func IsPortAvailable(port int, t string) bool

判断端口是否可以(未被占用) param t tcp/udp

func ListPortsInUse

func ListPortsInUse() ([]int, []int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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