forked from premiere/premiere-libtorrent
added default constructor to node_entry to make it build with vs 2008 sp1
This commit is contained in:
parent
5a201af5f5
commit
d2e8ae03d3
|
@ -61,6 +61,15 @@ struct node_entry
|
||||||
first_seen = time_now();
|
first_seen = time_now();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
node_entry()
|
||||||
|
: timeout_count(0xffff)
|
||||||
|
, id(0)
|
||||||
|
{
|
||||||
|
#ifdef TORRENT_DHT_VERBOSE_LOGGING
|
||||||
|
first_seen = time_now();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
bool pinged() const { return timeout_count != 0xffff; }
|
bool pinged() const { return timeout_count != 0xffff; }
|
||||||
void set_pinged() { if (timeout_count == 0xffff) timeout_count = 0; }
|
void set_pinged() { if (timeout_count == 0xffff) timeout_count = 0; }
|
||||||
|
|
Loading…
Reference in New Issue