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

Method ClearConnectionUsage

src/core/handler/ConfigHandler.cpp:168–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 }
167 }
168 void QvConfigHandler::ClearConnectionUsage(const ConnectionGroupPair &id)
169 {
170 CheckValidId(id.connectionId, nothing);
171 connections[id.connectionId].stats.Clear();
172 emit OnStatsAvailable(id, {});
173 PluginHost->SendEvent({ GetDisplayName(id.connectionId), 0, 0, 0, 0 });
174 return;
175 }
176
177 const QList<GroupId> QvConfigHandler::GetConnectionContainedIn(const ConnectionId &connId) const
178 {

Callers 1

Action_ResetStatsMethod · 0.80

Calls 3

GetDisplayNameFunction · 0.85
SendEventMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected