port

package
v1.104.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SuggestPort

func SuggestPort(listenHost string) (port int, resolvedHost string, err error)

SuggestPort suggests an address a process can listen on. It returns a tuple consisting of a free port and the hostname resolved to its IP. It makes sure that new port allocated does not conflict with old ports allocated within 1 minute.

Types

This section is empty.

Jump to

Keyboard shortcuts

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