Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStablePort ¶
GetStablePort returns an available TCP port. It first attempts to get a free port that is between start and start+2047, which is calculated in a deterministic way based on the current process' environment. If no available port can be found, it returns a random port (which could be outside of the range defined above).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.