From 87e328a1fbfcacafc013ba580d31dd4123f1e7e2 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 13 Jul 2018 00:47:53 +0100 Subject: Add the family() member to the sockaddrs union. --- include/socket.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/socket.h b/include/socket.h index aec06b526..6e9a20518 100644 --- a/include/socket.h +++ b/include/socket.h @@ -59,6 +59,8 @@ namespace irc struct sockaddr sa; struct sockaddr_in in4; struct sockaddr_in6 in6; + /** Return the family of the socket (e.g. AF_INET). */ + int family() const; /** Return the size of the structure for syscall passing */ socklen_t sa_size() const; /** Return port number or -1 if invalid */ -- cgit v1.2.3