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

Method GetStreamingDestination

libi2pd/Destination.cpp:1322–1333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1320 }
1321
1322 std::shared_ptr<i2p::stream::StreamingDestination> ClientDestination::GetStreamingDestination (uint16_t port) const
1323 {
1324 if (port)
1325 {
1326 auto it = m_StreamingDestinationsByPorts.find (port);
1327 if (it != m_StreamingDestinationsByPorts.end ())
1328 return it->second;
1329 }
1330 else // if port is zero, use default destination
1331 return m_StreamingDestination;
1332 return nullptr;
1333 }
1334
1335 void ClientDestination::AcceptStreams (const i2p::stream::StreamingDestination::Acceptor& acceptor)
1336 {

Callers 4

I2PServerTunnelMethod · 0.80
StopLocalDestinationMethod · 0.80
SendPingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected