/* */ #include "BtHaveNoneMessage.h" #include "DlAbortEx.h" #include "Peer.h" #include "StringFormat.h" namespace aria2 { const std::string BtHaveNoneMessage::NAME("have none"); SharedHandle BtHaveNoneMessage::create (const unsigned char* data, size_t dataLength) { return ZeroBtMessage::create(data, dataLength); } void BtHaveNoneMessage::doReceivedAction() { if(!peer->isFastExtensionEnabled()) { throw DlAbortEx (StringFormat("%s received while fast extension is disabled", toString().c_str()).str()); } } } // namespace aria2