From 02fbb7a8ea54d1188b2a8410ecd64ae93ac0210e Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 13 Jan 2023 15:52:17 +0100 Subject: Added process functions --- process.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'process.h') diff --git a/process.h b/process.h index b13a54c..fb24017 100644 --- a/process.h +++ b/process.h @@ -1,5 +1,7 @@ #pragma once +#include + #include #define EXPORT __attribute__((visibility("default"))) @@ -8,4 +10,11 @@ namespace Reichwein::Process { EXPORT bool is_running(pid_t pid); +EXPORT bool unix_is_pid_listening_on(pid_t pid, const std::string& path); +EXPORT void wait_for_pid_listening_on(pid_t pid, const std::string& path); + +EXPORT bool tcp_is_pid_listening_on(const std::string& tcp, pid_t pid, int port); +EXPORT bool is_pid_listening_on(pid_t pid, int port); +EXPORT void wait_for_pid_listening_on(pid_t pid, int port); + } // namespace -- cgit v1.2.3