diff options
Diffstat (limited to 'process.h')
| -rw-r--r-- | process.h | 9 | 
1 files changed, 9 insertions, 0 deletions
| @@ -1,5 +1,7 @@  #pragma once +#include <string> +  #include <sys/types.h>  #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 | 
