addrinfo Struct Reference

#include <stdapis/netdb.h>

struct addrinfo

Detailed Description

Includes the following members,

Member Attribute Documentation

ai_addr

struct sockaddr *ai_addr

binary address

ai_addrlen

socklen_t ai_addrlen

length of ai_addr

ai_canonname

char *ai_canonname

canonical name for hostname

ai_family

intai_family

PF_xxx

ai_flags

intai_flags

AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST

ai_next

struct addrinfo *ai_next

next structure in linked list

ai_protocol

intai_protocol

0 or IPPROTO_xxx for IPv4 and IPv6

ai_socktype

intai_socktype

SOCK_xxx