MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / stopServer

Method stopServer

sources/flatbuffers/server/FlatBuffersServer.cpp:248–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void FlatBuffersServer::stopServer()
249{
250 if ((_server != nullptr &&_server->isListening()) || (_domain != nullptr && _domain->isListening()))
251 {
252 QVectorIterator<FlatBuffersServerConnection*> i(_openConnections);
253 while (i.hasNext())
254 {
255 const auto& client = i.next();
256 client->forceClose();
257 }
258
259 // closing
260 if (_server != nullptr)
261 _server->close();
262
263 if (_domain != nullptr)
264 _domain->close();
265
266 Info(_log, "Stopped");
267 }
268}
269
270QString FlatBuffersServer::GetSharedLut()
271{

Callers

nothing calls this directly

Calls 4

isListeningMethod · 0.80
nextMethod · 0.45
forceCloseMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected