Workspace 6.21.5
Signals | Public Member Functions | List of all members
IpcServer Class Reference

Local inter-process communication server. This server is part of a local inter-process communication (IPC) client-server architecture providing two-way communications between the workspace-server process and the child process spawned by workspace-server in remote execution. The IpcServer use IpcServerSocket which wraps QLocalSocket to communicate with its possibly many connected IpcClients. There will be one IpcServer per WorkspaceObserver (hence per child process). The IpcServer listens on a port keyed by the workspace label that is executed in the child process. The connections IpcClients-IpcServer remains open as long as the child process is running. The IpcServer receives messages from IpcClients and notifies WorkspaceObserver about OperationUpdateEvent.

#include <Workspace/Application/Ipc/ipcserver.h>

Inherits QObject.

Signals

void onMessageReceived (QByteArray message)
 

Public Member Functions

 IpcServer (const QString &ipcName)
 
 ~IpcServer () override
 
bool broadcast (const QByteArray &message)
 send message to all connected clients
 
bool broadcast (const QString &message)
 send message to all connected clients
 

Constructor & Destructor Documentation

◆ IpcServer()

IpcServer ( const QString &  ipcName)

◆ ~IpcServer()

~IpcServer ( )
overridedefault

Member Function Documentation

◆ broadcast() [1/2]

bool broadcast ( const QByteArray &  message)

◆ broadcast() [2/2]

bool broadcast ( const QString &  message)

◆ onMessageReceived

void onMessageReceived ( QByteArray  message)
signal