Problem scenario
You see several variables that start with “ai_”. What does the “a” and “i” stand for?
Solution
The “a” stands for “address” and the “i” stands for “info”.
The man page for getaddrinfo says “The getaddrinfo() function is defined for protocol-independent nodename-to-address translation.” taken from http://www.nsc.ru/cgi-bin/www/unix_help/unix-man?getaddrinfo.
Therefore ai_flags, ai_family, ai_scoktype, ai_protocol, ai_addrlen,
…