MCPcopy Create free account
hub / github.com/ReversecLabs/C3 / TurnOffConnector

Method TurnOffConnector

Src/Core/GateRelay.cpp:235–247  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

233
234////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
235void FSecure::C3::Core::GateRelay::TurnOffConnector(HashT connectorNameHash)
236{
237 m_Profiler->Get().m_Gateway.ReTurnOffConnector(connectorNameHash);
238 m_Connectors.Remove([&connectorNameHash](std::shared_ptr<ConnectorBridge> c)
239 {
240 if (c->GetNameHash() == connectorNameHash)
241 {
242 c->Detach();
243 return true;
244 }
245 return false;
246 });
247}
248
249////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
250std::shared_ptr<FSecure::C3::Core::ConnectorBridge> FSecure::C3::Core::GateRelay::GetConnector(HashT connectorNameHash)

Callers 1

TurnOffMethod · 0.80

Calls 5

ReTurnOffConnectorMethod · 0.80
GetNameHashMethod · 0.80
GetMethod · 0.45
RemoveMethod · 0.45
DetachMethod · 0.45

Tested by

no test coverage detected