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

Method CleanUp

libi2pd/Streaming.cpp:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 void SendBufferQueue::CleanUp ()
75 {
76 if (!m_Buffers.empty ())
77 {
78 for (auto& it: m_Buffers)
79 it->Cancel ();
80 m_Buffers.clear ();
81 m_Size = 0;
82 }
83 }
84
85 Stream::Stream (boost::asio::io_context& service, StreamingDestination& local,
86 std::shared_ptr<const i2p::data::LeaseSet> remote, int port): m_Service (service),

Callers 1

DeleteStreamMethod · 0.45

Calls 4

NumSentPacketsMethod · 0.80
SetNumSentPacketsMethod · 0.80
DeletePacketMethod · 0.80
CancelMethod · 0.45

Tested by

no test coverage detected