Created new alert category for pure DHT operations.

This commit is contained in:
Alden Torres 2015-06-29 21:02:16 -04:00
parent fcac7140f8
commit cbba63ce94
2 changed files with 4 additions and 1 deletions

View File

@ -192,6 +192,9 @@ namespace libtorrent {
// enables dht_log_alert, debug logging for the DHT
dht_log_notification = 0x20000,
// enable events from pure dht operations not related to torrents
dht_operation_notification = 0x40000,
// The full bitmask, representing all available categories.
//
// since the enum is signed, make sure this isn't

View File

@ -2362,7 +2362,7 @@ namespace libtorrent
, sha1_hash const& ih
, std::vector<tcp::endpoint> const& v);
const static int static_category = alert::dht_notification;
const static int static_category = alert::dht_operation_notification;
TORRENT_DEFINE_ALERT(dht_get_peers_reply_alert, 87)
virtual std::string message() const;