2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Send have message to peer if it already has the piece.
	* src/BtHaveMessage.{h, cc}
pull/1/head
Tatsuhiro Tsujikawa 2007-12-25 12:37:50 +00:00
parent 20eb571ba1
commit e707ba0a6c
3 changed files with 5 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Send have message to peer if it already has the piece.
* src/BtHaveMessage.{h, cc}
2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed incomingPeer. Set 0 to peer's port if it is not a listening

View File

@ -55,10 +55,6 @@ void BtHaveMessage::doReceivedAction() {
peer->updateBitfield(index, 1);
}
bool BtHaveMessage::sendPredicate() const {
return !peer->hasPiece(index);
}
int32_t BtHaveMessage::MESSAGE_LENGTH = 9;
const unsigned char* BtHaveMessage::getMessage() {

View File

@ -71,8 +71,6 @@ public:
virtual int32_t getMessageLength();
virtual bool sendPredicate() const;
virtual string toString() const;
};