netx

package
v0.0.0-...-4675295 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAddr

func ConvertAddr(addr string) (r string, err error)

func ConvertToZeroIP

func ConvertToZeroIP(addr string) string

func ConvertZeroIPToPublic

func ConvertZeroIPToPublic(addr string) string

0.0.0.0:port

func GetExternalIP

func GetExternalIP() (string, error)

func GetInternalIPByUDP

func GetInternalIPByUDP() (string, error)

func GetIntranetIp

func GetIntranetIp() (ip net.IP, err error)

func GetPublicAddr

func GetPublicAddr(addr string) (x string)

func GetPulicIP

func GetPulicIP() string

func ParseNetwork

func ParseNetwork(str string) (network, addr string, err error)

func Y约定端口

func Y约定端口(addr string, channel, physerver int, use int) string

同一台机器未了避免端口冲突,约定规则 10000 + 渠道 % 100 * 1000 + 物理服务器% 10 * 100 + 用途 (1-99)

Types

This section is empty.

Jump to

Keyboard shortcuts

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