AddrInfo.getIp

Gets the address info for an IP node and/or service.

Parameters

node cstring

node name (may be null)

service cstring

service name (may be null)

ipv6 bool

false: get the IPv4, true: get the IPv6 address

type int

socket type (0 for any type)

protocol int

socket protocol (0 for any protocol)

flags addrinfo.Flags

getaddrinfo() flags

Return Value

Type: ErrorCode

0 on success or an error code on failure, see addrinfo.ErrorCode.

Meta