|
|
|
@ -454,18 +454,6 @@ namespace stream
@@ -454,18 +454,6 @@ namespace stream
|
|
|
|
|
return localDestination; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Stream * StreamingDestinations::CreateClientStream (const i2p::data::LeaseSet& remote) |
|
|
|
|
{ |
|
|
|
|
if (!m_SharedLocalDestination) return nullptr; |
|
|
|
|
return m_SharedLocalDestination->CreateNewOutgoingStream (remote); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void StreamingDestinations::DeleteStream (Stream * stream) |
|
|
|
|
{ |
|
|
|
|
if (stream) |
|
|
|
|
stream->GetLocalDestination ().DeleteStream (stream); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
StreamingDestination * StreamingDestinations::FindLocalDestination (const i2p::data::IdentHash& destination) const |
|
|
|
|
{ |
|
|
|
|
auto it = m_Destinations.find (destination); |
|
|
|
@ -474,16 +462,6 @@ namespace stream
@@ -474,16 +462,6 @@ namespace stream
|
|
|
|
|
return nullptr; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Stream * CreateStream (const i2p::data::LeaseSet& remote) |
|
|
|
|
{ |
|
|
|
|
return destinations.CreateClientStream (remote); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DeleteStream (Stream * stream) |
|
|
|
|
{ |
|
|
|
|
destinations.DeleteStream (stream); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void StartStreaming () |
|
|
|
|
{ |
|
|
|
|
destinations.Start (); |
|
|
|
|