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