From 702d32b41c1c4f496dba046c2017cb5b907e55cd Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 12 Jan 2023 20:00:40 +0100 Subject: FCGI test --- tests/fastcgiprocess.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/fastcgiprocess.h (limited to 'tests/fastcgiprocess.h') diff --git a/tests/fastcgiprocess.h b/tests/fastcgiprocess.h new file mode 100644 index 0000000..ce7bf74 --- /dev/null +++ b/tests/fastcgiprocess.h @@ -0,0 +1,28 @@ +#pragma once + +#include +#include + +#include +#include +#include +#include +#include +#include + +class FastCGIProcess +{ +public: + FastCGIProcess(const std::filesystem::path& path, const std::string& host, unsigned short port); + ~FastCGIProcess(); + bool is_running(); + +private: + void start(); + void stop(); + + pid_t m_pid; + std::string m_command; + std::string m_host; + unsigned short m_port; +}; -- cgit v1.2.3