Alert
The base class that every specific notification is derived from, ported from libtorrent::alert (include/libtorrent/alert.hpp).
In libtorrent, alerts are produced by the session and retrieved with session::pop_alerts(). Each concrete alert exposes a stable integer type (its alert_type constant), a short literal what, a human-readable message, and the category bitmask it belongs to.
libtorrent's C++ alerts are non-copyable, short-lived objects tied to a stack allocator. The KiteTorrent ports are plain immutable data classes instead, so you may copy and retain them freely.
See also
for the category bit values.
Inheritors
Properties
Link copied to clipboard
The bitmask of AlertCategory flags this alert belongs to. Mirrors alert::category(), which returns the concrete alert's static_category.