コード例 #1
0
    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);
    }
コード例 #2
0
ファイル: pipe.cpp プロジェクト: ZaneYang/VoxelHashing
void Pipe::connectToLocalPipe(const std::string &pipeName)
{
    connectToPipe(std::string("\\\\.\\pipe\\") + pipeName);
}