net

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllIPs

func GetAllIPs() ([]string, error)

GetAllIPs returns all IPs (IPv4 and IPv6) from the all network interfaces on the machine

func IsAddressIPv6 added in v1.8.1

func IsAddressIPv6(address string) bool

func PickTCPPort

func PickTCPPort(ip string, leftPort, rightPort uint32) (actualPort uint32, err error)

func ReserveTCPAddr

func ReserveTCPAddr(address string) (uint32, error)

func ToV6 added in v1.8.1

func ToV6(ip string) string

ToV6 return self if ip6 other return the v4 prefixed with ::ffff:

Types

This section is empty.

Jump to

Keyboard shortcuts

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