icinga2/lib/base/unixsocket.hpp

33 lines
458 B
C++
Raw Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#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
#ifndef _WIN32
namespace icinga
{
/**
* A TCP socket. DEPRECATED - Use Boost ASIO instead.
*
* @ingroup base
*/
2018-01-04 06:11:04 +01:00
class UnixSocket final : public Socket
{
public:
2014-11-07 12:32:25 +01:00
DECLARE_PTR_TYPEDEFS(UnixSocket);
UnixSocket();
2012-11-23 12:34:06 +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 */