/* */ #include "BtHaveMessage.h" #include "Peer.h" #include "PieceStorage.h" namespace aria2 { const std::string BtHaveMessage::NAME("have"); SharedHandle BtHaveMessage::create (const unsigned char* data, size_t dataLength) { return IndexBtMessage::create(data, dataLength); } void BtHaveMessage::doReceivedAction() { peer->updateBitfield(getIndex(), 1); pieceStorage->addPieceStats(getIndex()); } } // namespace aria2