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
|
@ -62,6 +62,15 @@ struct node_entry
|
|||
#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; }
|
||||
void set_pinged() { if (timeout_count == 0xffff) timeout_count = 0; }
|
||||
void timed_out() { if (pinged()) ++timeout_count; }
|
||||
|
|
Loading…
Reference in New Issue