diff --git a/src/network/network_content.h b/src/network/network_content.h --- a/src/network/network_content.h +++ b/src/network/network_content.h @@ -12,6 +12,7 @@ #include "core/tcp_content.h" #include "core/tcp_http.h" +#include /** Vector with content info */ typedef std::vector ContentVector; @@ -68,6 +69,7 @@ protected: std::vector callbacks; ///< Callbacks to notify "the world" ContentIDList requested; ///< ContentIDs we already requested (so we don't do it again) ContentVector infos; ///< All content info we received + std::unordered_multimap reverse_dependency_map; ///< Content reverse dependency map std::vector http_response; ///< The HTTP response to the requests we've been doing int http_response_index; ///< Where we are, in the response, with handling it @@ -81,7 +83,7 @@ protected: bool Receive_SERVER_INFO(Packet *p) override; bool Receive_SERVER_CONTENT(Packet *p) override; - ContentInfo *GetContent(ContentID cid); + ContentInfo *GetContent(ContentID cid) const; void DownloadContentInfo(ContentID cid); void OnConnect(bool success) override;