summaryrefslogtreecommitdiff
path: root/include/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/socket.h')
-rw-r--r--include/socket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/socket.h b/include/socket.h
index 2fcb149b1..11c536ed7 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -46,6 +46,12 @@ namespace irc
namespace sockets
{
+ typedef union {
+ struct sockaddr sa;
+ struct sockaddr_in in4;
+ struct sockaddr_in6 in6;
+ } sockaddrs;
+
/* macros to the relevant system address description structs */
#ifdef IPV6
/** insp_sockaddr for ipv6