Asterisk - The Open Source Telephony Project GIT-master-2de1a68
Data Fields
ast_sockaddr Struct Reference

Socket address structure. More...

#include <netsock2.h>

Data Fields

socklen_t len
 
struct sockaddr_storage ss
 

Detailed Description

Socket address structure.

The first member is big enough to contain addresses of any family. The second member contains the length (in bytes) used in the first member.

Note
Some BSDs have the length embedded in sockaddr structs. We ignore them. (This is the right thing to do.)
It is important to always initialize ast_sockaddr before use – even if they are passed to ast_sockaddr_copy() as the underlying storage could be bigger than what ends up being copied – leaving part of the data unitialized.

Definition at line 97 of file netsock2.h.

Field Documentation

◆ len

socklen_t len

◆ ss

struct sockaddr_storage ss

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