Previous Topic: ERRNO Numbers Set by the Socket Program InterfaceNext Topic: SERVENT Structure


HOSTENT Structure

The HOSTENT structure is returned by the GETHOSTBYADDR and GETHOSTBYNAME function calls.

Field

Description

Hostname

Address of hostname (null-terminated string)

Aliases

Address of a zero-terminated array of pointers to aliases, which are null-terminated strings

Address type

Address family of returned IP addresses (AF_INET or AF_INET6)

Address length

Length of returned IP addresses

Addresses

Address of a zero-terminated array of pointers to IP addresses