diff options
author | Peter Powell <petpow@saberuk.com> | 2018-07-13 10:28:28 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-07-18 19:22:17 +0100 |
commit | b7716ed57704b2b2bcc665a590aecc8f02de631d (patch) | |
tree | 43f1c62613f3aee5074009a3b8e4582dc65c3638 /include/socket.h | |
parent | 87e328a1fbfcacafc013ba580d31dd4123f1e7e2 (diff) |
Initial support for listening on UNIX socket endpoints.
Diffstat (limited to 'include/socket.h')
-rw-r--r-- | include/socket.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/socket.h b/include/socket.h index 6e9a20518..47e89070f 100644 --- a/include/socket.h +++ b/include/socket.h @@ -32,6 +32,7 @@ #include <sys/types.h> #include <sys/socket.h> #include <sys/stat.h> +#include <sys/un.h> #include <netinet/in.h> #include <unistd.h> #include <fcntl.h> @@ -59,6 +60,7 @@ namespace irc struct sockaddr sa; struct sockaddr_in in4; struct sockaddr_in6 in6; + struct sockaddr_un un; /** Return the family of the socket (e.g. AF_INET). */ int family() const; /** Return the size of the structure for syscall passing */ |