Limo
A simple mod manager
Loading...
Searching...
No Matches
IpcServer Class Reference

Manages a QLocalServer used for communication with other Limo instances. More...

#include <ipcserver.h>

Inheritance diagram for IpcServer:
Collaboration diagram for IpcServer:

Signals

void receivedMessage (QString message)
 Sends the message received from an IpcClient.
 

Public Member Functions

 IpcServer ()
 Initializes the server. Does NOT start it.
 
 ~IpcServer ()
 Stops and deletes the server.
 
bool setup ()
 Starts the server.
 
void shutdown ()
 Stops the server.
 

Static Public Attributes

static constexpr char server_name [] = "_Limo_Server_"
 The name of the server.
 

Private Slots

void setupConnection ()
 Initializes a connection with a QLocalSocket.
 
void processData ()
 Processes data received from a QLocalSocket.
 

Private Attributes

QLocalServer * server_
 The server used for IPC.
 

Detailed Description

Manages a QLocalServer used for communication with other Limo instances.

Member Function Documentation

◆ receivedMessage

void IpcServer::receivedMessage ( QString message)
signal

Sends the message received from an IpcClient.

Parameters
messageThe message.

◆ setup()

bool IpcServer::setup ( )

Starts the server.

Returns
True if the server is running.

The documentation for this class was generated from the following files: