Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyIPv4Address ¶
AnyIPv4Address returns an IPv4 meta address "0.0.0.0" with a port that represents any IP address listening on that port.
func IncreasePort ¶
IncreasePort increases a port number by 1. This can be useful to generate port ranges or consecutive port numbers for the same address.
func IncreasePortBy ¶
IncreasePortBy increases a port number by a factor of "inc". This can be useful to generate port ranges or consecutive port numbers for the same address.
func LocalhostIPv4Address ¶
LocalhostIPv4Address returns a localhost IPv4 address with a port that represents the localhost IP address listening on that port.
func MustIncreasePortBy ¶
MustIncreasePortBy calls IncreasePortBy and panics on error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.