mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
Qt remote objects IPC
This commit is contained in:
20
ipc/ipcserver.cpp
Normal file
20
ipc/ipcserver.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user