Udipe 1.0
Solving the riddle of high-throughput UDP
Loading...
Searching...
No Matches
Data Fields
ip_address_u Union Reference

#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.
 

Detailed Description

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.


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