MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / CreateNewIncomingStream

Method CreateNewIncomingStream

libi2pd/Streaming.cpp:2269–2276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2267 }
2268
2269 std::shared_ptr<Stream> StreamingDestination::CreateNewIncomingStream (uint32_t receiveStreamID)
2270 {
2271 auto s = std::make_shared<Stream> (m_Owner->GetService (), *this);
2272 std::unique_lock<std::mutex> l(m_StreamsMutex);
2273 m_Streams.emplace (s->GetRecvStreamID (), s);
2274 m_IncomingStreams.emplace (receiveStreamID, s);
2275 return s;
2276 }
2277
2278 void StreamingDestination::DeleteStream (std::shared_ptr<Stream> stream)
2279 {

Callers

nothing calls this directly

Calls 1

GetRecvStreamIDMethod · 0.80

Tested by

no test coverage detected