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

Local inter-process communication client. This client 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 IpcClient use QLocalSocket to communicate with IpcServer. Currently there is only one IpcClient per child process. But the code supports multiple IpcClients per IpcServer. The IpcClient connects to IpcServer on a port keyed by the workspace label that is executed in the child process. The connection IpcClient-IpcServer remains open as long as the child process is running. The IpcClient receives OperationUpdateEvent notifications from WorkspaceBatch (which runs the child process) and sends messages to IpcServer.

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

Inherits QObject.

Signals

void onMessageReceived (QByteArray message)
 

Public Member Functions

 IpcClient (const QString &wsLabel)
 
bool flush ()
 
bool sendMessage (const QByteArray &message)
 

Constructor & Destructor Documentation

◆ IpcClient()

IpcClient ( const QString &  wsLabel)

Member Function Documentation

◆ flush()

bool flush ( )

◆ onMessageReceived

void onMessageReceived ( QByteArray  message)
signal

◆ sendMessage()

bool sendMessage ( const QByteArray &  message)