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

Method CreateStreamingDestination

libi2pd/Destination.cpp:1360–1368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1358 }
1359
1360 std::shared_ptr<i2p::stream::StreamingDestination> ClientDestination::CreateStreamingDestination (uint16_t port, bool gzip)
1361 {
1362 auto dest = std::make_shared<i2p::stream::StreamingDestination> (GetSharedFromThis (), port, gzip);
1363 if (port)
1364 m_StreamingDestinationsByPorts[port] = dest;
1365 else // update default
1366 m_StreamingDestination = dest;
1367 return dest;
1368 }
1369
1370 std::shared_ptr<i2p::stream::StreamingDestination> ClientDestination::RemoveStreamingDestination (uint16_t port)
1371 {

Callers 2

I2PServerTunnelMethod · 0.80
SAMSubSessionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected