]> granicus.if.org Git - icinga2/blob - lib/base/unixsocket.hpp
Merge pull request #7185 from Icinga/bugfix/gelfwriter-wrong-log-facility
[icinga2] / lib / base / unixsocket.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef UNIXSOCKET_H
4 #define UNIXSOCKET_H
5
6 #include "base/socket.hpp"
7
8 #ifndef _WIN32
9 namespace icinga
10 {
11
12 class UnixSocket final : public Socket
13 {
14 public:
15         DECLARE_PTR_TYPEDEFS(UnixSocket);
16
17         UnixSocket();
18
19         void Bind(const String& path);
20
21         void Connect(const String& path);
22 };
23
24 }
25 #endif /* _WIN32 */
26
27 #endif /* UNIXSOCKET_H */