MCPcopy Create free account
hub / github.com/Qv2ray/Qv2ray / APIWorker

Method APIWorker

src/core/kernel/APIBackend.cpp:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 { API_OUTBOUND_BLACKHOLE, { "blackhole" } } };
19
20 APIWorker::APIWorker()
21 {
22 workThread = new QThread();
23 this->moveToThread(workThread);
24 DEBUG("API Worker initialised.");
25 connect(workThread, &QThread::started, this, &APIWorker::process);
26 connect(workThread, &QThread::finished, [] { LOG("API thread stopped"); });
27 started = true;
28 workThread->start();
29 }
30
31 void APIWorker::StartAPI(const QMap<bool, QMap<QString, QString>> &tagProtocolPair)
32 {

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected