package
1.0.2
Repository: https://github.com/ravior/gserver.git
Documentation: pkg.go.dev

# Functions

GetHostByName returns the IPv4 address corresponding to a given Internet host name.
GetHostsByName returns a list of IPv4 addresses corresponding to a given Internet host name.
GetIntranetIp retrieves and returns the first intranet ip of current machine.
GetIntranetIpArray retrieves and returns the intranet ip list of current machine.
GetIpArray retrieves and returns all the ip of current host.
GetMac retrieves and returns the first mac address of current host.
GetMacArray retrieves and returns all the mac address of current host.
GetNameByAddr returns the Internet host name corresponding to a given IP address.
Ip2long converts ip address to an uint32 integer.
IsIntranet checks and returns whether given ip an intranet ip.
Long2ip converts an uint32 integer ip address to its string type address.
ParseAddress parses <address> to its ip and port.
Validate checks whether given <ip> a valid IPv4 address.