blob: 430f03a31471d2cab4d724355ae022135ffec31b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef SERVER_CONTROL_H
#define SERVER_CONTROL_H
#include "Test.h"
bool HUPServer(int pid);
bool KillServer(int pid, 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
|