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 10:23:35 -04:00
#include "base/socket.hpp"
2013-03-16 16:18:53 -04:00
#ifndef _WIN32
namespace icinga
{
/**
* A TCP socket. DEPRECATED - Use Boost ASIO instead.
*
* @ingroup base
*/
2018-01-04 00:11:04 -05:00
class UnixSocket final : public Socket
{
public:
2014-11-07 06:32:25 -05:00
DECLARE_PTR_TYPEDEFS(UnixSocket);
UnixSocket();
2012-11-23 06:34:06 -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 */