|
|
|
@ -453,18 +453,6 @@ namespace stream
@@ -453,18 +453,6 @@ namespace stream
|
|
|
|
|
localDestination->Start (); |
|
|
|
|
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 |
|
|
|
|
{ |
|
|
|
@ -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 (); |
|
|
|
|