void launchServer() { DBG ("Client: Launching Server..."); auto pipeName = "ipc_" + String::toHexString (Random().nextInt64()); auto command = createCommandLineForLaunchingServer (pipeName, owner.project.getProjectUIDString(), getCacheLocationForProject (owner.project)); #if RUN_CLANG_IN_CHILD_PROCESS if (! childProcess.start (command)) jassertfalse; #else server = createClangServer (command); #endif if (connectToPipe (pipeName, 10000)) MessageTypes::sendPing (*this); else jassertfalse; startTimer (serverKeepAliveTimeout); }
void Pipe::connectToLocalPipe(const std::string &pipeName) { connectToPipe(std::string("\\\\.\\pipe\\") + pipeName); }