blob: be2464c198f9ade4abb98f293c06443d5e8ed23a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef SERVER_CONTROL_H
#define SERVER_CONTROL_H
#include "Test.h"
bool HUPServer(int pid);
bool KillServer(int pid, bool WaitForProcess = false);
bool KillServer(std::string pid_file, bool WaitForProcess = false);
int StartDaemon(int current_pid, const std::string& cmd_line, const char* pid_file);
bool StopDaemon(int current_pid, const std::string& pid_file,
const std::string& memleaks_file, bool wait_for_process);
#ifdef WIN32
#include "WinNamedPipeStream.h"
#include "IOStreamGetLine.h"
#include "BoxPortsAndFiles.h"
void SetNamedPipeName(const std::string& rPipeName);
// bool SendCommands(const std::string& rCmd);
#endif // WIN32
#endif // SERVER_CONTROL_H
|