|
Udipe 1.0
Solving the riddle of high-throughput UDP
|
#include <connect.h>
Data Fields | |
| struct sockaddr | any |
Used to safely query the sa_family field. | |
| struct sockaddr_in | v4 |
| IPv4 address. | |
| struct sockaddr_in6 | v6 |
| IPv6 address. | |
IP address
As a UDP library, libudipe only supports IPv4 and IPv6 addresses, i.e. sockaddr_in and sockaddr_in6 in POSIX parlance. As a special extension, sa_family == 0 is interpreted as requesting some default address.
This union does not need to be accompanied by a tag because the sockaddr types features a sa_family internal tag that enables IPv4/IPv6/default disambiguation.