sockaddr_internet Struct Reference

An object that can hold a ipv4 or ipv6 socket address. More...

#include <socket.h>


Data Fields

union {
   sockaddr   address
   sockaddr_in   ipv4
   sockaddr_in6   ipv6
}; 


Detailed Description

An object that can hold a ipv4 or ipv6 socket address.

This would be used for tcpip socket connections. We do not use sockaddr_storage because it is not present in pre ipv6 stacks, and because the storage size also includes the size of the path of a unix domain socket on posix systems.

Definition at line 101 of file socket.h.


The documentation for this struct was generated from the following file:
Generated on 14 Aug 2013 for UCommon by  doxygen 1.4.7