added default constructor to node_entry to make it build with vs 2008 sp1

This commit is contained in:
Arvid Norberg 2008-12-25 22:29:06 +00:00
parent 5a201af5f5
commit d2e8ae03d3
1 changed files with 9 additions and 0 deletions

View File

@ -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; }