mirror of
				https://github.com/Icinga/icinga2.git
				synced 2025-11-03 21:25:56 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			376 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			376 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
 | 
						|
 | 
						|
#ifndef UNIXSOCKET_H
 | 
						|
#define UNIXSOCKET_H
 | 
						|
 | 
						|
#include "base/socket.hpp"
 | 
						|
 | 
						|
#ifndef _WIN32
 | 
						|
namespace icinga
 | 
						|
{
 | 
						|
 | 
						|
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 */
 |