Qt remote objects IPC
This commit is contained in:
parent
c4df9c004b
commit
048a673d31
18 changed files with 340 additions and 25 deletions
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue