mirror of https://github.com/aria2/aria2
clang-format-3.6
parent
aaab5bbc74
commit
5892291c55
|
@ -119,13 +119,15 @@ void DHTRoutingTable::getClosestKNodes(
|
||||||
int DHTRoutingTable::getNumBucket() const { return numBucket_; }
|
int DHTRoutingTable::getNumBucket() const { return numBucket_; }
|
||||||
|
|
||||||
void DHTRoutingTable::showBuckets() const
|
void DHTRoutingTable::showBuckets() const
|
||||||
{ /*
|
{
|
||||||
|
/*
|
||||||
for(std::deque<std::shared_ptr<DHTBucket> >::const_iterator itr =
|
for(std::deque<std::shared_ptr<DHTBucket> >::const_iterator itr =
|
||||||
buckets_.begin(); itr != buckets_.end(); ++itr) {
|
buckets_.begin(); itr != buckets_.end(); ++itr) {
|
||||||
cerr << "prefix = " << (*itr)->getPrefixLength() << ", "
|
cerr << "prefix = " << (*itr)->getPrefixLength() << ", "
|
||||||
<< "nodes = " << (*itr)->countNode() << endl;
|
<< "nodes = " << (*itr)->countNode() << endl;
|
||||||
}
|
}
|
||||||
*/}
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
std::shared_ptr<DHTBucket>
|
std::shared_ptr<DHTBucket>
|
||||||
DHTRoutingTable::getBucketFor(const unsigned char* nodeID) const
|
DHTRoutingTable::getBucketFor(const unsigned char* nodeID) const
|
||||||
|
|
|
@ -76,7 +76,7 @@ static void timer_callback(uv_timer_t* handle, int status)
|
||||||
static void timer_callback(uv_timer_t* handle) { timer_callback(handle, 0); }
|
static void timer_callback(uv_timer_t* handle) { timer_callback(handle, 0); }
|
||||||
|
|
||||||
#else // !defined(UV_VERSION_MINOR) || (UV_VERSION_MAJOR == 0 &&
|
#else // !defined(UV_VERSION_MINOR) || (UV_VERSION_MAJOR == 0 &&
|
||||||
// UV_VERSION_MINOR <= 10)
|
// UV_VERSION_MINOR <= 10)
|
||||||
|
|
||||||
static void timer_callback(uv_timer_t* handle) { uv_stop(handle->loop); }
|
static void timer_callback(uv_timer_t* handle) { uv_stop(handle->loop); }
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ struct UDPTrackerRequest {
|
||||||
Timer dispatched;
|
Timer dispatched;
|
||||||
int failCount;
|
int failCount;
|
||||||
std::shared_ptr<UDPTrackerReply> reply;
|
std::shared_ptr<UDPTrackerReply> reply;
|
||||||
void *user_data;
|
void* user_data;
|
||||||
UDPTrackerRequest();
|
UDPTrackerRequest();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue