icinga2/lib/base/unixsocket.hpp
Michael Friedrich f5bc9b469c Quality: Mark NetworkStream, TcpSocket & UnixSocket classes as deprecated
They're used inside the Livestatus feature which needs rework.
2019-05-29 14:17:36 +02:00

33 lines
458 B
C++

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#ifndef UNIXSOCKET_H
#define UNIXSOCKET_H
#include "base/socket.hpp"
#ifndef _WIN32
namespace icinga
{
/**
* A TCP socket. DEPRECATED - Use Boost ASIO instead.
*
* @ingroup base
*/
class UnixSocket final : public Socket
{
public:
DECLARE_PTR_TYPEDEFS(UnixSocket);
UnixSocket();
void Bind(const String& path);
void Connect(const String& path);
};
}
#endif /* _WIN32 */
#endif /* UNIXSOCKET_H */