ports

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2017 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry keeps track of reserved ports.

func NewRegistry

func NewRegistry(min, max uint16, reserved []uint16) *Registry

func (*Registry) Release

func (r *Registry) Release(port uint16) error

func (*Registry) Reserve

func (r *Registry) Reserve() (uint16, error)

Jump to

Keyboard shortcuts

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