/* */ #ifndef D_TORRENT_ATTRIBUTE_H #define D_TORRENT_ATTRIBUTE_H #include "ContextAttribute.h" #include #include #include "a2time.h" struct TorrentAttribute:public ContextAttribute { std::string name; std::string mode; std::vector > announceList; std::vector > nodes; // raw hash value 20 bytes. std::string infoHash; std::string metadata; size_t metadataSize; bool privateTorrent; time_t creationDate; std::string comment; std::string createdBy; std::vector urlList; TorrentAttribute():metadataSize(0), privateTorrent(false), creationDate(0) {} }; #endif // D_TORRENT_ATTRIBUTE_H