mirror of
https://github.com/outbackdingo/amnezia-client.git
synced 2026-01-27 10:18:14 +00:00
21 lines
408 B
C++
21 lines
408 B
C++
#include "ipcserver.h"
|
|
|
|
#include <QDateTime>
|
|
|
|
IpcServer::IpcServer(QObject *parent):
|
|
IpcInterfaceSource(parent)
|
|
{}
|
|
|
|
int IpcServer::createPrivilegedProcess()
|
|
{
|
|
m_localpid++;
|
|
|
|
ProcessDescriptor pd;
|
|
pd.serverNode->setHostUrl(QUrl(amnezia::getIpcProcessUrl(m_localpid)));
|
|
pd.serverNode->enableRemoting(pd.ipcProcess.data());
|
|
|
|
m_processes.insert(m_localpid, pd);
|
|
|
|
return m_localpid;
|
|
}
|