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

Method On

Src/Core/NodeRelay.cpp:191–201  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

189
190////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
191void FSecure::C3::Core::NodeRelay::On(ProceduresN2N::InitializeRouteQuery query)
192{
193 // Retrieve GRC.
194 auto grc = GetGatewayReturnChannel();
195 if (!grc)
196 throw std::runtime_error(OBF("Cannot get GRC"));
197
198
199 auto queryS2G = ProceduresS2G::InitializeRouteQuery::Create(RouteId{ GetAgentId(), grc->GetDid() }, FSecure::Utils::TimeSinceEpoch(), query.GetSenderRouteId(), query.GetSenderChannel().lock()->GetDid(), query.GetQueryPacket(), m_GatewayEncryptionKey);
200 LockAndSendPacket(queryS2G->ComposeQueryPacket(), grc);
201}
202
203////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
204void FSecure::C3::Core::NodeRelay::On(ProceduresS2G::InitializeRouteQuery query)

Callers

nothing calls this directly

Calls 15

TimeSinceEpochFunction · 0.85
CloseFunction · 0.85
AddRouteClass · 0.85
GenerateRandomStringFunction · 0.85
RouteIdClass · 0.85
GetDidMethod · 0.80
GetSenderChannelMethod · 0.80
GetRecipientRouteIdMethod · 0.80
IsNegotiationChannelMethod · 0.80
GetChannelParametersMethod · 0.80
GetTypeNameHashMethod · 0.80
GetInputIdMethod · 0.80

Tested by

no test coverage detected