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

Method GateRelay

Src/Core/GateRelay.cpp:25–33  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

23
24////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
25FSecure::C3::Core::GateRelay::GateRelay(LoggerCallback callbackOnLog, InterfaceFactory& interfaceFactory, std::string_view selfIp, std::uint16_t apiBrigdePort,
26 FSecure::Crypto::SignatureKeys const& signatures, FSecure::Crypto::SymmetricKey const& broadcastKey, FSecure::C3::BuildId buildId, std::filesystem::path snapshotPath, FSecure::C3::AgentId agentId)
27 : Relay(callbackOnLog, interfaceFactory, Crypto::ConvertToKey(signatures.first), broadcastKey, buildId, agentId)
28 , m_AuthenticationKey{ Crypto::ConvertToKey(signatures.second) }
29 , m_Signature{ signatures.first }
30 , m_Profiler(std::make_shared<Profiler>(std::move(snapshotPath)))
31{
32 Log({ "Gateway launched.", FSecure::C3::LogMessage::Severity::Information });
33}
34
35////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
36bool FSecure::C3::Core::GateRelay::IsAgentBanned(AgentId agentId)

Callers

nothing calls this directly

Calls 1

LogFunction · 0.85

Tested by

no test coverage detected