Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
zsock_addrinfo Struct Reference

Definition used when querying address information. More...

#include <socket.h>

Data Fields

struct zsock_addrinfoai_next
 Pointer to next address entry.
 
int ai_flags
 Additional options.
 
int ai_family
 Address family of the returned addresses.
 
int ai_socktype
 Socket type, for example SOCK_STREAM or SOCK_DGRAM.
 
int ai_protocol
 Protocol for addresses, 0 means any protocol.
 
int ai_eflags
 Extended flags for special usage.
 
socklen_t ai_addrlen
 Length of the socket address.
 
struct sockaddrai_addr
 Pointer to the address.
 
char * ai_canonname
 Optional official name of the host.
 

Detailed Description

Definition used when querying address information.

A linked list of these descriptors is returned by getaddrinfo(). The struct is also passed as hints when calling the getaddrinfo() function.

Field Documentation

◆ ai_addr

struct sockaddr* zsock_addrinfo::ai_addr

Pointer to the address.

◆ ai_addrlen

socklen_t zsock_addrinfo::ai_addrlen

Length of the socket address.

◆ ai_canonname

char* zsock_addrinfo::ai_canonname

Optional official name of the host.

◆ ai_eflags

int zsock_addrinfo::ai_eflags

Extended flags for special usage.

◆ ai_family

int zsock_addrinfo::ai_family

Address family of the returned addresses.

◆ ai_flags

int zsock_addrinfo::ai_flags

Additional options.

◆ ai_next

struct zsock_addrinfo* zsock_addrinfo::ai_next

Pointer to next address entry.

◆ ai_protocol

int zsock_addrinfo::ai_protocol

Protocol for addresses, 0 means any protocol.

◆ ai_socktype

int zsock_addrinfo::ai_socktype

Socket type, for example SOCK_STREAM or SOCK_DGRAM.


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