addrinfo

Address information struct as returned by getaddrinfo().

Members

Aliases

INET6_ADDRSTRLEN
alias INET6_ADDRSTRLEN = .INET6_ADDRSTRLEN
Undocumented in source.
INET_ADDRSTRLEN
alias INET_ADDRSTRLEN = .INET_ADDRSTRLEN
Undocumented in source.

Enums

ErrorCode
enum ErrorCode

Error codes returned by getaddrinfo() (not passed via errno).

Flags
enum Flags

getaddrinfo() flags.

Functions

canonname
char[] canonname()

Obtains the current canonical name.

ipAddress
mstring ipAddress(mstring dst)

Obtains the current IP address in standard notation.

opApply
int opApply(int delegate(ref typeof(this) info) dg)

'foreach' iteration over the linked list of instances of this struct; starting with this instance.

port
ushort port()

Obtains the current port number.

Variables

ai_addr
sockaddr* ai_addr;
Undocumented in source.
ai_addrlen
socklen_t ai_addrlen;
Undocumented in source.
ai_canonname
char* ai_canonname;
Undocumented in source.
ai_family
int ai_family;
Undocumented in source.
ai_flags
Flags ai_flags;

Data fields.

ai_next
typeof(&this) ai_next;
ai_protocol
int ai_protocol;
ai_socktype
int ai_socktype;
Undocumented in source.

Meta