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

Method CreateNewOutgoingStream

libi2pd/Streaming.cpp:2255–2261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2253 }
2254
2255 std::shared_ptr<Stream> StreamingDestination::CreateNewOutgoingStream (std::shared_ptr<const i2p::data::LeaseSet> remote, int port)
2256 {
2257 auto s = std::make_shared<Stream> (m_Owner->GetService (), *this, remote, port);
2258 std::unique_lock<std::mutex> l(m_StreamsMutex);
2259 m_Streams.emplace (s->GetRecvStreamID (), s);
2260 return s;
2261 }
2262
2263 void StreamingDestination::SendPing (std::shared_ptr<const i2p::data::LeaseSet> remote)
2264 {

Callers 1

CreateStreamMethod · 0.80

Calls 1

GetRecvStreamIDMethod · 0.80

Tested by

no test coverage detected