2019-02-25 08:48:22 -05:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2012-11-23 05:02:34 -05:00
|
|
|
|
|
|
|
|
#ifndef UNIXSOCKET_H
|
|
|
|
|
#define UNIXSOCKET_H
|
|
|
|
|
|
2014-05-25 10:23:35 -04:00
|
|
|
#include "base/socket.hpp"
|
2013-03-16 16:18:53 -04:00
|
|
|
|
2012-11-23 05:02:34 -05:00
|
|
|
#ifndef _WIN32
|
|
|
|
|
namespace icinga
|
|
|
|
|
{
|
|
|
|
|
|
2019-05-29 08:17:36 -04:00
|
|
|
/**
|
|
|
|
|
* A TCP socket. DEPRECATED - Use Boost ASIO instead.
|
|
|
|
|
*
|
|
|
|
|
* @ingroup base
|
|
|
|
|
*/
|
2018-01-04 00:11:04 -05:00
|
|
|
class UnixSocket final : public Socket
|
2012-11-23 05:02:34 -05:00
|
|
|
{
|
|
|
|
|
public:
|
2014-11-07 06:32:25 -05:00
|
|
|
DECLARE_PTR_TYPEDEFS(UnixSocket);
|
2012-11-23 05:02:34 -05:00
|
|
|
|
2018-01-03 22:25:35 -05:00
|
|
|
UnixSocket();
|
2012-11-23 06:34:06 -05:00
|
|
|
|
2012-11-23 05:02:34 -05:00
|
|
|
void Bind(const String& path);
|
|
|
|
|
|
|
|
|
|
void Connect(const String& path);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
#endif /* _WIN32 */
|
|
|
|
|
|
2012-11-23 06:34:06 -05:00
|
|
|
#endif /* UNIXSOCKET_H */
|