/* */ #include "BtUnchokeMessage.h" #include "Peer.h" #include "SocketBuffer.h" namespace aria2 { const char BtUnchokeMessage::NAME[] = "unchoke"; BtUnchokeMessage::BtUnchokeMessage() : ZeroBtMessage(ID, NAME) {} std::unique_ptr BtUnchokeMessage::create(const unsigned char* data, size_t dataLength) { return ZeroBtMessage::create(data, dataLength); } void BtUnchokeMessage::doReceivedAction() { if (isMetadataGetMode()) { return; } getPeer()->peerChoking(false); } } // namespace aria2