Previous Topic: Socket Structure DescriptionsNext Topic: SOCKADDR Structure


ADDRINFO Structure

The ADDRINFO structure is input and output to the GETADDRINFO function call.

Field

Description

Flags

A set of flags

Family

Address family (AF_INET or AF_INET6)

Socket type

Type of socket (STREAM or DATAGRAM)

Protocol

Protocol in use for the socket

SOCKADDR length

Length of SOCKADDR structure

Canonical name

Address of canonical name associated with input node name

SOCKADDR structure

Address of the SOCKADDR structure

New ADDRINFO

Address of next ADDRINFO structure