| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- #pragma once
- #include "IPCChannel.h"
- namespace Atomic
- {
- class IPCProcess;
- /// Server application held broker
- class IPCBroker : public IPCChannel
- {
- friend class IPC;
- OBJECT(IPCBroker);
- public:
- /// Construct.
- IPCBroker(Context* context);
- /// Destruct.
- virtual ~IPCBroker();
- void ThreadFunction();
- bool Update();
- private:
- static unsigned idCounter_;
- bool SpawnWorker(const String& command, const Vector<String>& args, const String& initialDirectory = "");
- // broker instantiates the pipe pair
- PipePair pp_;
- };
- }
|