package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Feb 5, 2014
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
BeginPortRange = 49153
EndPortRange = 65535
)
View Source
var (
ErrPortAlreadyAllocated = errors.New("port has already been allocated")
ErrPortExceedsRange = errors.New("port exceeds upper range")
ErrUnknownProtocol = errors.New("unknown protocol")
)
ReleasePort will return the provided port back into the
pool for reuse
RequestPort returns an available port if the port is 0
If the provided port is not 0 then it will be checked if
it is available for allocation
Source Files
¶
Click to show internal directories.
Click to hide internal directories.