mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
21 lines
687 B
C++
21 lines
687 B
C++
class SlaveProcess
|
|
{
|
|
public:
|
|
SlaveProcess() {}
|
|
virtual ~SlaveProcess() {}
|
|
|
|
virtual void Kill() = 0;
|
|
virtual bool IsRunning() = 0;
|
|
virtual void Write(String s) = 0;
|
|
virtual bool Read(String& s) = 0;
|
|
virtual int GetExitCode() = 0;
|
|
virtual void Detach() {};
|
|
|
|
private:
|
|
SlaveProcess(const SlaveProcess& sp);
|
|
void operator = (const SlaveProcess& sp);
|
|
};
|
|
|
|
One<SlaveProcess> StartLocalProcess(const char *cmdline, const char *envptr = NULL);
|
|
One<SlaveProcess> StartRemoteProcess(const char *host, int port, const char *cmdline, const char *envptr = NULL, int timeout = Null);
|
|
One<SlaveProcess> StartProcess(const char *cmdline, const char *envptr = NULL, int timeout = Null);
|