blob: b01778c6c5f4b85b90f215a4044f151ef9b27fdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <string>
#include <sys/types.h>
#define EXPORT __attribute__((visibility("default")))
namespace Reichwein::Process {
EXPORT bool is_running(pid_t pid);
EXPORT int number_of_threads(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
|