AddrInfo.get

Gets the address info for a node and/or service.

  1. ErrorCode get(cstring node, cstring service, int family, int type, int protocol, addrinfo.Flags flags)
  2. ErrorCode get(cstring node, cstring service, addrinfo* hints)

Parameters

node cstring

node name (may be null)

service cstring

service name (may be null)

family int

socket family (0 for any family)

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