ultimatepp/uppsrc/Web/sproc.h
mdelfede 263ff5f895 changed svn layout
git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-06-07 22:31:27 +00:00

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);