Created new alert category for pure DHT operations.
This commit is contained in:
parent
fcac7140f8
commit
cbba63ce94
|
@ -192,6 +192,9 @@ namespace libtorrent {
|
||||||
// enables dht_log_alert, debug logging for the DHT
|
// enables dht_log_alert, debug logging for the DHT
|
||||||
dht_log_notification = 0x20000,
|
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.
|
// The full bitmask, representing all available categories.
|
||||||
//
|
//
|
||||||
// since the enum is signed, make sure this isn't
|
// since the enum is signed, make sure this isn't
|
||||||
|
|
|
@ -2362,7 +2362,7 @@ namespace libtorrent
|
||||||
, sha1_hash const& ih
|
, sha1_hash const& ih
|
||||||
, std::vector<tcp::endpoint> const& v);
|
, 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)
|
TORRENT_DEFINE_ALERT(dht_get_peers_reply_alert, 87)
|
||||||
|
|
||||||
virtual std::string message() const;
|
virtual std::string message() const;
|
||||||
|
|
Loading…
Reference in New Issue