Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
local_server_name.h File Reference
#include <QDir>
#include <QString>
#include <QtGlobal>
Include dependency graph for local_server_name.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

QString scopedLocalServerName (const QString &prefix)
 Builds a QLocalServer/QLocalSocket name scoped to the current user.

Function Documentation

◆ scopedLocalServerName()

QString scopedLocalServerName ( const QString & prefix)
inline

Builds a QLocalServer/QLocalSocket name scoped to the current user.

On Linux the default local socket namespace is system-wide, so an unscoped name would let one user's process talk to — or hijack — another user's session.

Parameters
prefixapplication specific socket name prefix
Returns
the scoped socket name
Here is the call graph for this function:
Here is the caller graph for this function: