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)
    class AddrInfo
    ErrorCode
    get

Parameters

node cstring

node name (may be null)

service cstring

service name (may be null)

hints addrinfo*

addrinfo instance specifying the socket family, type, protocol and flags or null to get all available addresses

Return Value

Type: ErrorCode

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

Meta