|
| | Server (QObject *parent=nullptr) |
| | Server.
|
| |
|
QString | application () const |
| |
|
bool | autoReload () const |
| |
|
int | bufferSize () const |
| |
|
QString | chdir () const |
| |
|
QString | chdir2 () const |
| |
|
QString | chownSocket () const |
| |
|
int | cpuAffinity () const |
| |
| int | exec (Cutelyst::Application *app=nullptr) |
| |
|
QStringList | fastcgiSocket () const |
| |
|
QString | gid () const |
| |
|
quint32 | http2HeaderTableSize () const |
| |
|
QStringList | http2Socket () const |
| |
|
bool | httpsH2 () const |
| |
|
QStringList | httpSocket () const |
| |
|
QStringList | httpsSocket () const |
| |
|
QStringList | ini () const |
| |
|
QStringList | json () const |
| |
|
bool | lazy () const |
| |
|
int | listenQueue () const |
| |
|
bool | master () const |
| |
|
bool | noInitgroups () const |
| |
|
void | parseCommandLine (const QStringList &args) |
| |
|
QString | pidfile () const |
| |
|
QString | pidfile2 () const |
| |
|
qint64 | postBuffering () const |
| |
|
qint64 | postBufferingBufsize () const |
| |
|
QString | processes () const |
| |
|
bool | reusePort () const |
| |
|
void | setApplication (const QString &application) |
| |
|
void | setAutoReload (bool enable) |
| |
|
void | setBufferSize (int size) |
| |
|
void | setChdir (const QString &chdir) |
| |
|
void | setChdir2 (const QString &chdir2) |
| |
|
void | setChownSocket (const QString &chownSocket) |
| |
|
void | setCpuAffinity (int value) |
| |
|
void | setFastcgiSocket (const QStringList &fastcgiSocket) |
| |
|
void | setGid (const QString &gid) |
| |
|
void | setHttp2HeaderTableSize (quint32 headerTableSize) |
| |
|
void | setHttp2Socket (const QStringList &http2Socket) |
| |
|
void | setHttpsH2 (bool enable) |
| |
|
void | setHttpSocket (const QStringList &httpSocket) |
| |
|
void | setHttpsSocket (const QStringList &httpsSocket) |
| |
|
void | setIni (const QStringList &files) |
| |
|
void | setJson (const QStringList &files) |
| |
|
void | setLazy (bool enable) |
| |
|
void | setListenQueue (int size) |
| |
|
void | setMaster (bool enable) |
| |
|
void | setNoInitgroups (bool enable) |
| |
|
void | setPidfile (const QString &file) |
| |
|
void | setPidfile2 (const QString &file) |
| |
|
void | setPostBuffering (qint64 size) |
| |
|
void | setPostBufferingBufsize (qint64 size) |
| |
|
void | setProcesses (const QString &process) |
| |
|
void | setReusePort (bool enable) |
| |
|
void | setSocketAccess (const QString &socketAccess) |
| |
|
void | setSocketRcvbuf (int value) |
| |
|
void | setSocketSndbuf (int value) |
| |
|
void | setSocketTimeout (int timeout) |
| |
|
void | setSoKeepalive (bool enable) |
| |
|
void | setStaticMap (const QStringList &staticMap) |
| |
|
void | setStaticMap2 (const QStringList &staticMap) |
| |
|
void | setTcpNodelay (bool enable) |
| |
|
void | setThreads (const QString &threads) |
| |
|
void | setTouchReload (const QStringList &files) |
| |
|
void | setUid (const QString &uid) |
| |
|
void | setUmask (const QString &value) |
| |
|
void | setUpgradeH2c (bool enable) |
| |
|
void | setUsingFrontendProxy (bool enable) |
| |
|
void | setWebsocketMaxSize (int value) |
| |
|
QString | socketAccess () const |
| |
|
int | socketRcvbuf () const |
| |
|
int | socketSndbuf () const |
| |
|
int | socketTimeout () const |
| |
|
bool | soKeepalive () const |
| |
| bool | start (Cutelyst::Application *app=nullptr) |
| | This function will start the Cutelyst::Server in user application mode.
|
| |
|
QStringList | staticMap () const |
| |
|
QStringList | staticMap2 () const |
| |
|
void | stop () |
| | Terminates the server execution, when started with start(), it does nothing when started by exec().
|
| |
|
bool | tcpNodelay () const |
| |
|
QString | threads () const |
| |
|
QStringList | touchReload () const |
| |
|
QString | uid () const |
| |
|
QString | umask () const |
| |
|
bool | upgradeH2c () const |
| |
|
bool | usingFrontendProxy () const |
| |
|
int | websocketMaxSize () const |
| |
Definition at line 22 of file server.h.
| QString Cutelyst::Server::threads |
|
readwrite |
Defines the number of threads to use, if set to "auto" the ideal thread count is used
- Accessors:
- threads(), setThreads()
A new thread is only created when > "2" or if "auto" reports more than 1 core, when the number of threads is 2 or more a new thread is not created for the worker 0, it's this way to save allocating a new Application as we already have our current thread.
If it's desired to not have the Server running on the GUI (or current) thread for example, the Server must be moved to a new thread manually.
Definition at line 90 of file server.h.