mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
create/delete stream per destination only
This commit is contained in:
parent
341e860caa
commit
18d6a2c70e
6 changed files with 7 additions and 33 deletions
|
@ -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
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
Stream * CreateStream (const i2p::data::LeaseSet& remote)
|
||||
{
|
||||
return destinations.CreateClientStream (remote);
|
||||
}
|
||||
|
||||
void DeleteStream (Stream * stream)
|
||||
{
|
||||
destinations.DeleteStream (stream);
|
||||
}
|
||||
|
||||
void StartStreaming ()
|
||||
{
|
||||
destinations.Start ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue