Thu Apr 16 06:48:56 2015

Asterisk developer's documentation

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.

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 63 of file netsock2.h.

Field Documentation

socklen_t len

struct sockaddr_storage ss [read]

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

Generated on Thu Apr 16 06:48:56 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6