#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& args, const String& initialDirectory = ""); // broker instantiates the pipe pair PipePair pp_; }; }