posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
addrinfo Struct Reference

Address info structure returned by getaddrinfo. More...

#include <zephyr/posix/netdb.h>

Collaboration diagram for addrinfo:

Data Fields

struct addrinfoai_next
 Next entry in the linked list, or NULL.
 
int ai_flags
 Input AI_* flags.
 
int ai_family
 Address family (AF_INET, AF_INET6, AF_UNSPEC).
 
int ai_socktype
 Socket type (SOCK_STREAM, SOCK_DGRAM, ...).
 
int ai_protocol
 Protocol (IPPROTO_*), or 0 for any.
 
socklen_t ai_addrlen
 Length of addrinfo.ai_addr in bytes.
 
struct sockaddrai_addr
 Socket address for this entry.
 
char * ai_canonname
 Canonical host name, or NULL.
 

Detailed Description

Address info structure returned by getaddrinfo.

Definition at line 110 of file netdb.h.

Field Documentation

◆ ai_addr

struct sockaddr* addrinfo::ai_addr

Socket address for this entry.

Definition at line 120 of file netdb.h.

◆ ai_addrlen

socklen_t addrinfo::ai_addrlen

Length of addrinfo.ai_addr in bytes.

Definition at line 119 of file netdb.h.

◆ ai_canonname

char* addrinfo::ai_canonname

Canonical host name, or NULL.

Definition at line 121 of file netdb.h.

◆ ai_family

int addrinfo::ai_family

Address family (AF_INET, AF_INET6, AF_UNSPEC).

Definition at line 113 of file netdb.h.

◆ ai_flags

int addrinfo::ai_flags

Input AI_* flags.

Definition at line 112 of file netdb.h.

◆ ai_next

struct addrinfo* addrinfo::ai_next

Next entry in the linked list, or NULL.

Definition at line 111 of file netdb.h.

◆ ai_protocol

int addrinfo::ai_protocol

Protocol (IPPROTO_*), or 0 for any.

Definition at line 115 of file netdb.h.

◆ ai_socktype

int addrinfo::ai_socktype

Socket type (SOCK_STREAM, SOCK_DGRAM, ...).

Definition at line 114 of file netdb.h.


The documentation for this struct was generated from the following file: