AddrInfo

Wraps getaddrinfo()/freeaddrinfo() and manages an addrinfo instance.

Members

Functions

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

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

get
ErrorCode get(cstring node, cstring service, addrinfo* hints)

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

getIp
ErrorCode getIp(cstring node, cstring service, bool ipv6, int type, int protocol, addrinfo.Flags flags)

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

getTcpIp
ErrorCode getTcpIp(cstring node, cstring service, bool ipv6, addrinfo.Flags flags)

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

info
addrinfo* info()

Inherited Members

From AddrInfoC

Flags
alias Flags = addrinfo.Flags
Undocumented in source.
ErrorCode
alias ErrorCode = addrinfo.ErrorCode
Undocumented in source.
ip_address_buf
char[INET6_ADDRSTRLEN] ip_address_buf;

IP address conversion buffer

~this
~this()

Destructor.

getTcpIp
ErrorCode getTcpIp(char* node, char* service, bool ipv6, addrinfo.Flags flags)

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

getIp
ErrorCode getIp(char* node, char* service, bool ipv6, int type, int protocol, addrinfo.Flags flags)

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

get
ErrorCode get(char* node, char* service, int family, int type, int protocol, addrinfo.Flags flags)

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

get
ErrorCode get(char* node, char* service, addrinfo* hints)

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

info
addrinfo* info()
ip_address
char[] ip_address()

Obtains the current IP address in standard notation.

port
ushort port()
canonname
char[] canonname()
canonname_c
char* canonname_c()

Meta