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

Method NegotiateChannel

Src/Core/NodeRelay.cpp:184–188  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

182
183////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
184void FSecure::C3::Core::NodeRelay::NegotiateChannel(std::shared_ptr<DeviceBridge> const& device)
185{
186 auto query = ProceduresN2N::ChannelIdExchangeStep1::Create(RouteId{ m_AgentId, device->GetDid()}, device->GetInputId());
187 LockAndSendPacket(query->ComposeQueryPacket(), device);
188}
189
190////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
191void FSecure::C3::Core::NodeRelay::On(ProceduresN2N::InitializeRouteQuery query)

Callers 1

CreateAndRunMethod · 0.80

Calls 3

GetDidMethod · 0.80
GetInputIdMethod · 0.80
ComposeQueryPacketMethod · 0.45

Tested by

no test coverage detected