UCommon
|
An object that can hold a ipv4 or ipv6 socket address. More...
#include <socket.h>
Data Fields | |
union { | |
struct sockaddr address | |
struct sockaddr_in ipv4 | |
struct sockaddr_in6 ipv6 | |
}; | |
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.