/* */ #include "BtUnchokeMessage.h" #include "Peer.h" namespace aria2 { const std::string BtUnchokeMessage::NAME("unchoke"); SharedHandle BtUnchokeMessage::create (const unsigned char* data, size_t dataLength) { return ZeroBtMessage::create(data, dataLength); } void BtUnchokeMessage::doReceivedAction() { peer->peerChoking(false); } bool BtUnchokeMessage::sendPredicate() const { return peer->amChoking(); } void BtUnchokeMessage::onSendComplete() { peer->amChoking(false); } } // namespace aria2