ports

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFreePortFrom

func FindFreePortFrom(startPort int, exclude ...int) int

FindFreePortFrom finds first empty port, starting with `startPort`, and excluding ports listed in exclude.

func IsPortFree

func IsPortFree(port int) bool

IsPortFree checks if the port is free to use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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