~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to src/DHTPeerAnnounceStorage.cc

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2010-11-24 12:26:31 UTC
  • mfrom: (1.6.1 upstream) (2.3.8 experimental)
  • Revision ID: james.westby@ubuntu.com-20101124122631-upujekj1ek94h3x2
Tags: 1.10.6-1
* New upstream release:
  + Fixed FTBFS on alpha arch (Closes: #590257)
  + Added IPv6 support (Closes: #448390)
* debian/patches/ftbfs_kfreebsd.diff:
  + Dropped, merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
DHTPeerAnnounceStorage::~DHTPeerAnnounceStorage() {}
58
58
 
 
59
namespace {
59
60
class InfoHashLess
60
61
{
61
62
public:
65
66
    return memcmp(lhs->getInfoHash(), rhs->getInfoHash(), DHT_ID_LENGTH) < 0;
66
67
  }
67
68
};
 
69
} // namespace
68
70
 
69
71
SharedHandle<DHTPeerAnnounceEntry>
70
72
DHTPeerAnnounceStorage::getPeerAnnounceEntry(const unsigned char* infoHash)
116
118
  }
117
119
}
118
120
 
 
121
namespace {
119
122
class RemoveStalePeerAddrEntry
120
123
{
121
124
public:
124
127
    e->removeStalePeerAddrEntry(DHT_PEER_ANNOUNCE_PURGE_INTERVAL);
125
128
  }
126
129
};
 
130
} // namespace
127
131
 
128
132
void DHTPeerAnnounceStorage::handleTimeout()
129
133
{