add more override annotation
This commit is contained in:
parent
ec49e08456
commit
74ee06bff7
|
@ -89,7 +89,9 @@ namespace libtorrent
|
|||
|
||||
// internal
|
||||
static const int alert_type = 0;
|
||||
virtual std::string message() const;
|
||||
|
||||
// returns the message associated with this alert
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// The torrent_handle pointing to the torrent this
|
||||
// alert is associated with.
|
||||
|
@ -117,8 +119,8 @@ namespace libtorrent
|
|||
|
||||
static const int alert_type = 1;
|
||||
static const int static_category = alert::peer_notification;
|
||||
virtual int category() const { return static_category; }
|
||||
virtual std::string message() const;
|
||||
virtual int category() const TORRENT_OVERRIDE { return static_category; }
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// The peer's IP address and port.
|
||||
tcp::endpoint ip;
|
||||
|
@ -138,8 +140,8 @@ namespace libtorrent
|
|||
|
||||
static const int alert_type = 2;
|
||||
static const int static_category = alert::tracker_notification;
|
||||
virtual int category() const { return static_category; }
|
||||
virtual std::string message() const;
|
||||
virtual int category() const TORRENT_OVERRIDE { return static_category; }
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// returns a null-terminated string of the tracker's URL
|
||||
char const* tracker_url() const;
|
||||
|
@ -166,10 +168,10 @@ namespace libtorrent
|
|||
#define TORRENT_DEFINE_ALERT_IMPL(name, seq, prio) \
|
||||
static const int priority = prio; \
|
||||
static const int alert_type = seq; \
|
||||
virtual int type() const { return alert_type; } \
|
||||
virtual int type() const TORRENT_OVERRIDE { return alert_type; } \
|
||||
TORRENT_CLONE(name) \
|
||||
virtual int category() const { return static_category; } \
|
||||
virtual char const* what() const { return #name; }
|
||||
virtual int category() const TORRENT_OVERRIDE { return static_category; } \
|
||||
virtual char const* what() const TORRENT_OVERRIDE { return #name; }
|
||||
|
||||
#define TORRENT_DEFINE_ALERT(name, seq) \
|
||||
TORRENT_DEFINE_ALERT_IMPL(name, seq, 0)
|
||||
|
@ -188,7 +190,7 @@ namespace libtorrent
|
|||
|
||||
TORRENT_DEFINE_ALERT(torrent_added_alert, 3)
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
};
|
||||
|
||||
// The ``torrent_removed_alert`` is posted whenever a torrent is removed. Since
|
||||
|
@ -211,7 +213,7 @@ namespace libtorrent
|
|||
|
||||
TORRENT_DEFINE_ALERT_PRIO(torrent_removed_alert, 4)
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
sha1_hash info_hash;
|
||||
};
|
||||
|
@ -234,7 +236,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT_PRIO(read_piece_alert, 5)
|
||||
|
||||
static const int static_category = alert::storage_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
error_code ec;
|
||||
|
@ -254,7 +256,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(file_completed_alert, 6)
|
||||
|
||||
static const int static_category = alert::progress_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// refers to the index of the file that completed.
|
||||
int index;
|
||||
|
@ -272,7 +274,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT_PRIO(file_renamed_alert, 7)
|
||||
|
||||
static const int static_category = alert::storage_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
std::string name;
|
||||
|
@ -299,7 +301,7 @@ namespace libtorrent
|
|||
|
||||
static const int static_category = alert::storage_notification;
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
// refers to the index of the file that was supposed to be renamed,
|
||||
|
@ -401,7 +403,7 @@ namespace libtorrent
|
|||
|
||||
static const int static_category = alert::performance_warning;
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
performance_warning_t warning_code;
|
||||
};
|
||||
|
@ -418,7 +420,7 @@ namespace libtorrent
|
|||
|
||||
static const int static_category = alert::status_notification;
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the new state of the torrent.
|
||||
torrent_status::state_t state;
|
||||
|
@ -449,7 +451,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(tracker_error_alert, 11)
|
||||
|
||||
static const int static_category = alert::tracker_notification | alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
int times_in_row;
|
||||
int status_code;
|
||||
|
@ -479,7 +481,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(tracker_warning_alert, 12)
|
||||
|
||||
static const int static_category = alert::tracker_notification | alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
// contains the warning message from the tracker.
|
||||
|
@ -505,7 +507,7 @@ namespace libtorrent
|
|||
|
||||
TORRENT_DEFINE_ALERT(scrape_reply_alert, 13)
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the data returned in the scrape response. These numbers
|
||||
// may be -1 if the reponse was malformed.
|
||||
|
@ -531,7 +533,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(scrape_failed_alert, 14)
|
||||
|
||||
static const int static_category = alert::tracker_notification | alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
// contains a message describing the error.
|
||||
|
@ -564,7 +566,7 @@ namespace libtorrent
|
|||
|
||||
TORRENT_DEFINE_ALERT(tracker_reply_alert, 15)
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// tells how many peers the tracker returned in this response. This is
|
||||
// not expected to be more thant the ``num_want`` settings. These are not necessarily
|
||||
|
@ -585,7 +587,7 @@ namespace libtorrent
|
|||
|
||||
TORRENT_DEFINE_ALERT(dht_reply_alert, 16)
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
int num_peers;
|
||||
};
|
||||
|
@ -602,7 +604,7 @@ namespace libtorrent
|
|||
|
||||
TORRENT_DEFINE_ALERT(tracker_announce_alert, 17)
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// specifies what event was sent to the tracker. It is defined as:
|
||||
//
|
||||
|
@ -624,7 +626,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(hash_failed_alert, 18)
|
||||
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
int piece_index;
|
||||
};
|
||||
|
@ -639,7 +641,7 @@ namespace libtorrent
|
|||
|
||||
TORRENT_DEFINE_ALERT(peer_ban_alert, 19)
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
};
|
||||
|
||||
// This alert is generated when a peer is unsnubbed. Essentially when it was snubbed for stalling
|
||||
|
@ -652,7 +654,7 @@ namespace libtorrent
|
|||
|
||||
TORRENT_DEFINE_ALERT(peer_unsnubbed_alert, 20)
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
};
|
||||
|
||||
// This alert is generated when a peer is snubbed, when it stops sending data when we request
|
||||
|
@ -665,7 +667,7 @@ namespace libtorrent
|
|||
|
||||
TORRENT_DEFINE_ALERT(peer_snubbed_alert, 21)
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
};
|
||||
|
||||
// This alert is generated when a peer sends invalid data over the peer-peer protocol. The peer
|
||||
|
@ -680,7 +682,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(peer_error_alert, 22)
|
||||
|
||||
static const int static_category = alert::peer_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// a NULL-terminated string of the low-level operation that failed, or NULL if
|
||||
// there was no low level disk operation.
|
||||
|
@ -704,7 +706,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(peer_connect_alert, 23)
|
||||
|
||||
static const int static_category = alert::debug_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
int socket_type;
|
||||
};
|
||||
|
@ -722,7 +724,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(peer_disconnected_alert, 24)
|
||||
|
||||
static const int static_category = alert::debug_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the kind of socket this peer was connected over
|
||||
int socket_type;
|
||||
|
@ -755,7 +757,7 @@ namespace libtorrent
|
|||
|
||||
TORRENT_DEFINE_ALERT(invalid_request_alert, 25)
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the request we received from the peer
|
||||
peer_request request;
|
||||
|
@ -784,7 +786,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(torrent_finished_alert, 26)
|
||||
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
};
|
||||
|
||||
// this alert is posted every time a piece completes downloading
|
||||
|
@ -799,7 +801,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(piece_finished_alert, 27)
|
||||
|
||||
static const int static_category = alert::progress_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the index of the piece that finished
|
||||
int piece_index;
|
||||
|
@ -817,7 +819,7 @@ namespace libtorrent
|
|||
|
||||
static const int static_category = alert::progress_notification
|
||||
| alert::peer_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
int block_index;
|
||||
int piece_index;
|
||||
|
@ -835,7 +837,7 @@ namespace libtorrent
|
|||
|
||||
static const int static_category = alert::progress_notification
|
||||
| alert::peer_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
int block_index;
|
||||
int piece_index;
|
||||
|
@ -852,7 +854,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(block_finished_alert, 30)
|
||||
|
||||
static const int static_category = alert::progress_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
int block_index;
|
||||
int piece_index;
|
||||
|
@ -869,7 +871,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(block_downloading_alert, 31)
|
||||
|
||||
static const int static_category = alert::progress_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
char const* peer_speedmsg;
|
||||
|
@ -889,7 +891,7 @@ namespace libtorrent
|
|||
|
||||
TORRENT_DEFINE_ALERT(unwanted_block_alert, 32)
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
int block_index;
|
||||
int piece_index;
|
||||
|
@ -908,7 +910,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(storage_moved_alert, 33)
|
||||
|
||||
static const int static_category = alert::storage_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
std::string path;
|
||||
|
@ -935,7 +937,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(storage_moved_failed_alert, 34)
|
||||
|
||||
static const int static_category = alert::storage_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
error_code error;
|
||||
|
||||
|
@ -972,7 +974,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT_PRIO(torrent_deleted_alert, 35)
|
||||
|
||||
static const int static_category = alert::storage_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
|
@ -991,7 +993,7 @@ namespace libtorrent
|
|||
|
||||
static const int static_category = alert::storage_notification
|
||||
| alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
|
@ -1018,7 +1020,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT_PRIO(save_resume_data_alert, 37)
|
||||
|
||||
static const int static_category = alert::storage_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
|
@ -1038,7 +1040,7 @@ namespace libtorrent
|
|||
|
||||
static const int static_category = alert::storage_notification
|
||||
| alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
|
@ -1061,7 +1063,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(torrent_paused_alert, 39)
|
||||
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
};
|
||||
|
||||
// This alert is generated as a response to a torrent_handle::resume() request. It is
|
||||
|
@ -1074,7 +1076,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(torrent_resumed_alert, 40)
|
||||
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
};
|
||||
|
||||
// This alert is posted when a torrent completes checking. i.e. when it transitions
|
||||
|
@ -1087,7 +1089,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(torrent_checked_alert, 41)
|
||||
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
};
|
||||
|
||||
// This alert is generated when a HTTP seed name lookup fails.
|
||||
|
@ -1102,7 +1104,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(url_seed_alert, 42)
|
||||
|
||||
static const int static_category = alert::peer_notification | alert::error_notification;
|
||||
std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
// the HTTP seed that failed
|
||||
|
@ -1144,7 +1146,7 @@ namespace libtorrent
|
|||
static const int static_category = alert::status_notification
|
||||
| alert::error_notification
|
||||
| alert::storage_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
// the path to the file that was accessed when the error occurred.
|
||||
|
@ -1178,7 +1180,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(metadata_failed_alert, 44)
|
||||
|
||||
static const int static_category = alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// indicates what failed when parsing the metadata. This error is
|
||||
// what's returned from lazy_bdecode().
|
||||
|
@ -1218,7 +1220,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(metadata_received_alert, 45)
|
||||
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
};
|
||||
|
||||
// This alert is posted when there is an error on the UDP socket. The
|
||||
|
@ -1235,7 +1237,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(udp_error_alert, 46)
|
||||
|
||||
static const int static_category = alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the source address associated with the error (if any)
|
||||
udp::endpoint endpoint;
|
||||
|
@ -1256,7 +1258,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(external_ip_alert, 47)
|
||||
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the IP address that is believed to be our external IP
|
||||
address external_address;
|
||||
|
@ -1286,7 +1288,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT_PRIO(listen_failed_alert, 48)
|
||||
|
||||
static const int static_category = alert::status_notification | alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
#if !defined(TORRENT_NO_DEPRECATE) && !defined(TORRENT_WINRT)
|
||||
|
@ -1329,7 +1331,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT_PRIO(listen_succeeded_alert, 49)
|
||||
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
// the endpoint libtorrent ended up listening on. The address
|
||||
|
@ -1356,7 +1358,7 @@ namespace libtorrent
|
|||
|
||||
static const int static_category = alert::port_mapping_notification
|
||||
| alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// refers to the mapping index of the port map that failed, i.e.
|
||||
// the index returned from add_mapping().
|
||||
|
@ -1384,7 +1386,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(portmap_alert, 51)
|
||||
|
||||
static const int static_category = alert::port_mapping_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// refers to the mapping index of the port map that failed, i.e.
|
||||
// the index returned from add_mapping().
|
||||
|
@ -1411,7 +1413,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(portmap_log_alert, 52)
|
||||
|
||||
static const int static_category = alert::port_mapping_log_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
int map_type;
|
||||
|
||||
|
@ -1446,7 +1448,7 @@ namespace libtorrent
|
|||
|
||||
static const int static_category = alert::status_notification
|
||||
| alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
error_code error;
|
||||
|
||||
|
@ -1486,7 +1488,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(peer_blocked_alert, 54)
|
||||
|
||||
static const int static_category = alert::ip_block_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the address that was blocked.
|
||||
address ip;
|
||||
|
@ -1516,7 +1518,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(dht_announce_alert, 55)
|
||||
|
||||
static const int static_category = alert::dht_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
address ip;
|
||||
int port;
|
||||
|
@ -1533,7 +1535,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(dht_get_peers_alert, 56)
|
||||
|
||||
static const int static_category = alert::dht_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
sha1_hash info_hash;
|
||||
};
|
||||
|
@ -1550,7 +1552,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(stats_alert, 57)
|
||||
|
||||
static const int static_category = alert::stats_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
enum stats_channel
|
||||
{
|
||||
|
@ -1616,7 +1618,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(anonymous_mode_alert, 59)
|
||||
|
||||
static const int static_category = alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
enum kind_t
|
||||
{
|
||||
|
@ -1642,7 +1644,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(lsd_peer_alert, 60)
|
||||
|
||||
static const int static_category = alert::peer_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
};
|
||||
|
||||
// This alert is posted whenever a tracker responds with a ``trackerid``.
|
||||
|
@ -1658,7 +1660,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(trackerid_alert, 61)
|
||||
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
// The tracker ID returned by the tracker
|
||||
|
@ -1681,7 +1683,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(dht_bootstrap_alert, 62)
|
||||
|
||||
static const int static_category = alert::dht_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
};
|
||||
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
|
@ -1699,7 +1701,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(rss_alert, 63)
|
||||
|
||||
static const int static_category = alert::rss_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
enum state_t
|
||||
{
|
||||
|
@ -1742,7 +1744,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(torrent_error_alert, 64)
|
||||
|
||||
static const int static_category = alert::error_notification | alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// specifies which error the torrent encountered.
|
||||
error_code error;
|
||||
|
@ -1772,7 +1774,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT_PRIO(torrent_need_cert_alert, 65)
|
||||
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
error_code error;
|
||||
|
@ -1793,7 +1795,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(incoming_connection_alert, 66)
|
||||
|
||||
static const int static_category = alert::peer_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// tells you what kind of socket the connection was accepted
|
||||
// as:
|
||||
|
@ -1828,7 +1830,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT_PRIO(add_torrent_alert, 67)
|
||||
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
// a copy of the parameters used when adding the torrent, it can be used
|
||||
|
@ -1852,7 +1854,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT_PRIO(state_update_alert, 68)
|
||||
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
// contains the torrent status of all torrents that changed since last
|
||||
|
@ -1870,7 +1872,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(mmap_cache_alert, 69)
|
||||
|
||||
static const int static_category = alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
error_code error;
|
||||
};
|
||||
|
@ -1885,7 +1887,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT_PRIO(session_stats_alert, 70)
|
||||
|
||||
static const int static_category = alert::stats_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
|
@ -1917,7 +1919,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT_PRIO(torrent_update_alert, 71)
|
||||
|
||||
static const int static_category = alert::status_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
// ``old_ih`` and ``new_ih`` are the previous and new info-hash for the torrent, respectively.
|
||||
|
@ -1940,7 +1942,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(rss_item_alert, 72)
|
||||
|
||||
static const int static_category = alert::rss_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
feed_handle handle;
|
||||
feed_item item;
|
||||
|
@ -1958,7 +1960,7 @@ namespace libtorrent
|
|||
|
||||
static const int static_category = alert::error_notification
|
||||
| alert::dht_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the error code
|
||||
error_code error;
|
||||
|
@ -1984,7 +1986,7 @@ namespace libtorrent
|
|||
|
||||
static const int static_category = alert::dht_notification;
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
// the target hash of the immutable item. This must
|
||||
|
@ -2010,7 +2012,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT_PRIO(dht_mutable_item_alert, 75)
|
||||
|
||||
static const int static_category = alert::dht_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
TORRENT_NOT_DISCARDABLE
|
||||
|
||||
|
@ -2052,7 +2054,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(dht_put_alert, 76)
|
||||
|
||||
static const int static_category = alert::dht_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the target hash the item was stored under if this was an *immutable*
|
||||
// item.
|
||||
|
@ -2074,7 +2076,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(i2p_alert, 77)
|
||||
|
||||
static const int static_category = alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the error that occurred in the i2p SAM connection
|
||||
error_code error;
|
||||
|
@ -2092,7 +2094,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(dht_outgoing_get_peers_alert, 78)
|
||||
|
||||
static const int static_category = alert::dht_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the info_hash of the torrent we're looking for peers for.
|
||||
sha1_hash info_hash;
|
||||
|
@ -2117,7 +2119,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(log_alert, 79)
|
||||
|
||||
static const int static_category = alert::session_log_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// returns the log message
|
||||
char const* msg() const;
|
||||
|
@ -2140,7 +2142,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(torrent_log_alert, 80)
|
||||
|
||||
static const int static_category = alert::torrent_log_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// returns the log message
|
||||
char const* msg() const;
|
||||
|
@ -2175,7 +2177,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(peer_log_alert, 81)
|
||||
|
||||
static const int static_category = alert::peer_log_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// string literal indicating the kind of event. For messages, this is the
|
||||
// message name.
|
||||
|
@ -2200,7 +2202,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(lsd_error_alert, 82)
|
||||
|
||||
static const int static_category = alert::error_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// The error code
|
||||
error_code error;
|
||||
|
@ -2274,7 +2276,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(dht_stats_alert, 83)
|
||||
|
||||
static const int static_category = alert::stats_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// a vector of the currently running DHT lookups.
|
||||
std::vector<dht_lookup> active_requests;
|
||||
|
@ -2298,7 +2300,7 @@ namespace libtorrent
|
|||
static const int static_category = alert::incoming_request_notification;
|
||||
TORRENT_DEFINE_ALERT(incoming_request_alert, 84)
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the request this peer sent to us
|
||||
peer_request req;
|
||||
|
@ -2321,7 +2323,7 @@ namespace libtorrent
|
|||
static const int static_category = alert::dht_log_notification;
|
||||
TORRENT_DEFINE_ALERT(dht_log_alert, 85)
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// the log message
|
||||
char const* log_message() const;
|
||||
|
@ -2348,7 +2350,7 @@ namespace libtorrent
|
|||
static const int static_category = alert::dht_log_notification;
|
||||
TORRENT_DEFINE_ALERT(dht_pkt_alert, 86)
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
// returns a pointer to the packet buffer and size of the packet,
|
||||
// respectively. This buffer is only valid for as long as the alert itself
|
||||
|
@ -2379,7 +2381,7 @@ namespace libtorrent
|
|||
static const int static_category = alert::dht_operation_notification;
|
||||
TORRENT_DEFINE_ALERT(dht_get_peers_reply_alert, 87)
|
||||
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
sha1_hash info_hash;
|
||||
|
||||
|
@ -2406,7 +2408,7 @@ namespace libtorrent
|
|||
TORRENT_DEFINE_ALERT(dht_direct_response_alert, 88)
|
||||
|
||||
static const int static_category = alert::dht_notification;
|
||||
virtual std::string message() const;
|
||||
virtual std::string message() const TORRENT_OVERRIDE;
|
||||
|
||||
void* userdata;
|
||||
udp::endpoint addr;
|
||||
|
|
|
@ -33,8 +33,12 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
#ifndef TORRENT_DHT_STORAGE_HPP
|
||||
#define TORRENT_DHT_STORAGE_HPP
|
||||
|
||||
#include "libtorrent/aux_/disable_warnings_push.hpp"
|
||||
|
||||
#include <boost/function.hpp>
|
||||
|
||||
#include "libtorrent/aux_/disable_warnings_pop.hpp"
|
||||
|
||||
#include <libtorrent/socket.hpp>
|
||||
#include <libtorrent/sha1_hash.hpp>
|
||||
#include <libtorrent/address.hpp>
|
||||
|
|
Loading…
Reference in New Issue