AddrInfoC.get

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

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

Parameters

node char*

node name (may be null)

service char*

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