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)
  2. ErrorCode get(char* node, char* service, addrinfo* hints)
    class AddrInfoC
    get
    (
    char* node
    ,
    char* service
    ,
    addrinfo* hints = null
    )

Parameters

node char*

node name (may be null)

service char*

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