Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Ipv4SplitCharacter use for slipt Ipv4 Ipv4SplitCharacter = "." // Ipv6SplitCharacter use for slipt Ipv6 Ipv6SplitCharacter = ":" )
Variables ¶
This section is empty.
Functions ¶
func IsSameAddr ¶ added in v1.5.2
refer from https://github.com/facebookarchive/grace/blob/master/gracenet/net.go#L180
func ListenOnTCPRandomPort ¶ added in v1.9.0
func ListenOnTCPRandomPort(ip string) (*net.TCPListener, error)
ListenOnTCPRandomPort a tcp server listening on a random port by tcp protocol
func ListenOnUDPRandomPort ¶ added in v1.9.0
ListenOnUDPRandomPort a udp endpoint listening on a random port
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.