QtCraft API C++ classes QML types Handbook

QcSocketErrors Namespace

Translated texts for socket errors (context "QcNetwork", decision E-261): Qt's own error strings are English and name system calls; players see what went wrong and what to check. More...

Header: #include <network/QcSocketErrors.h>

Functions

QString describe(QAbstractSocket::SocketError error, const QString &fallback)

Detailed Description

Function Documentation

QString QcSocketErrors::describe(QAbstractSocket::SocketError error, const QString &fallback)

Returns the text for error; fallback (the socket's errorString()) for errors without a text of their own.