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

Method HandleDeliveryStatusMessage

libi2pd/Garlic.cpp:905–922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903 }
904
905 void GarlicDestination::HandleDeliveryStatusMessage (uint32_t msgID)
906 {
907 GarlicRoutingSessionPtr session;
908 {
909 std::unique_lock<std::mutex> l(m_DeliveryStatusSessionsMutex);
910 auto it = m_DeliveryStatusSessions.find (msgID);
911 if (it != m_DeliveryStatusSessions.end ())
912 {
913 session = it->second;
914 m_DeliveryStatusSessions.erase (it);
915 }
916 }
917 if (session)
918 {
919 session->MessageConfirmed (msgID);
920 LogPrint (eLogDebug, "Garlic: Message ", msgID, " acknowledged");
921 }
922 }
923
924 void GarlicDestination::SetLeaseSetUpdated (bool post)
925 {

Callers

nothing calls this directly

Calls 2

LogPrintFunction · 0.85
MessageConfirmedMethod · 0.45

Tested by

no test coverage detected