Mon Jun 27 16:51:23 2011

Asterisk developer's documentation


ast_sockaddr Struct Reference

#include <netsock2.h>


Data Fields

socklen_t len
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.)

Definition at line 53 of file netsock2.h.


Field Documentation

socklen_t len

Definition at line 55 of file netsock2.h.

Referenced by _ast_sockaddr_from_sin(), _ast_sockaddr_port(), _ast_sockaddr_set_port(), _ast_sockaddr_to_sin(), apply_netmask(), ast_accept(), ast_bind(), ast_connect(), ast_getsockname(), ast_recvfrom(), ast_sendto(), ast_sockaddr_cmp(), ast_sockaddr_cmp_addr(), ast_sockaddr_copy(), ast_sockaddr_is_ipv4(), ast_sockaddr_is_ipv4_mapped(), ast_sockaddr_is_ipv6(), ast_sockaddr_isnull(), ast_sockaddr_parse(), ast_sockaddr_setnull(), ast_sockaddr_stringify_fmt(), dnsmgr_refresh(), and parse_cidr_mask().

struct sockaddr_storage ss

Definition at line 54 of file netsock2.h.

Referenced by _ast_sockaddr_from_sin(), _ast_sockaddr_port(), _ast_sockaddr_set_port(), _ast_sockaddr_to_sin(), apply_netmask(), ast_accept(), ast_bind(), ast_connect(), ast_get_ip_or_srv(), ast_getsockname(), ast_recvfrom(), ast_rtp_instance_bridge(), ast_sendto(), ast_sockaddr_cmp(), ast_sockaddr_cmp_addr(), ast_sockaddr_hash(), ast_sockaddr_ipv4(), ast_sockaddr_ipv4_mapped(), ast_sockaddr_is_any(), ast_sockaddr_is_ipv4(), ast_sockaddr_is_ipv4_mapped(), ast_sockaddr_is_ipv6(), ast_sockaddr_parse(), ast_sockaddr_stringify_fmt(), create_addr(), get_address_family_filter(), and parse_cidr_mask().


The documentation for this struct was generated from the following file:
Generated on Mon Jun 27 16:51:23 2011 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7