DTS Application Library  0.2.3
Application library containing referenced objects and interfaces to common libraries
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
sockstruct Union Reference

Socket union describing all address types. More...

#include <dtsapp.h>

Data Fields

struct sockaddr sa
 Base socket addr structure. More...
 
struct sockaddr_un un
 Unix sockets. More...
 
struct sockaddr_in sa4
 IPv4 socket addr structure. More...
 
struct sockaddr_in6 sa6
 IPv6 socket addr structure. More...
 
struct sockaddr_storage ss
 Sockaddr storage is a "magic" struct been able to hold IPv4 or IPv6. More...
 

Detailed Description

Socket union describing all address types.

Examples:
socket.c.

Definition at line 80 of file dtsapp.h.

Field Documentation

struct sockaddr sockstruct::sa

Base socket addr structure.

Definition at line 82 of file dtsapp.h.

Referenced by accept_socket(), dtls_listenssl(), inet_ntop(), mcast_socket(), socketread_d(), and socketwrite_d().

struct sockaddr_in sockstruct::sa4

IPv4 socket addr structure.

Definition at line 88 of file dtsapp.h.

Referenced by inet_ntop(), and sockaddr2ip().

struct sockaddr_in6 sockstruct::sa6

IPv6 socket addr structure.

Definition at line 90 of file dtsapp.h.

Referenced by inet_ntop(), and sockaddr2ip().

struct sockaddr_storage sockstruct::ss

Sockaddr storage is a "magic" struct been able to hold IPv4 or IPv6.

Definition at line 92 of file dtsapp.h.

Referenced by inet_ntop(), sockaddr2ip(), and socketwrite_d().

struct sockaddr_un sockstruct::un

Unix sockets.

Definition at line 85 of file dtsapp.h.

Referenced by socketwrite_d(), and unixsocket_client().


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