| 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 | { |
no outgoing calls
no test coverage detected