qBittorrent
tracker.cpp File Reference
#include "tracker.h"
#include <libtorrent/bencode.hpp>
#include <libtorrent/entry.hpp>
#include <QHostAddress>
#include "base/exceptions.h"
#include "base/global.h"
#include "base/http/httperror.h"
#include "base/http/server.h"
#include "base/http/types.h"
#include "base/logger.h"
#include "base/preferences.h"
Include dependency graph for tracker.cpp:

Go to the source code of this file.

Classes

class  anonymous_namespace{tracker.cpp}::TrackerError
 
struct  BitTorrent::Tracker::TrackerAnnounceRequest
 

Namespaces

 anonymous_namespace{tracker.cpp}
 
 BitTorrent
 

Functions

QByteArray anonymous_namespace{tracker.cpp}::toBigEndianByteArray (const QHostAddress &addr)
 
bool BitTorrent::operator== (const Peer &left, const Peer &right)
 
bool BitTorrent::operator!= (const Peer &left, const Peer &right)
 
uint BitTorrent::qHash (const Peer &key, const uint seed)
 

Variables

const int anonymous_namespace{tracker.cpp}::MAX_TORRENTS = 10000
 
const int anonymous_namespace{tracker.cpp}::MAX_PEERS_PER_TORRENT = 200
 
const int anonymous_namespace{tracker.cpp}::ANNOUNCE_INTERVAL = 1800
 
const int anonymous_namespace{tracker.cpp}::PEER_ID_SIZE = 20
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_PATH [] = "/announce"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_COMPACT [] = "compact"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_INFO_HASH [] = "info_hash"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_IP [] = "ip"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_LEFT [] = "left"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_NO_PEER_ID [] = "no_peer_id"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_NUM_WANT [] = "numwant"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_PEER_ID [] = "peer_id"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_PORT [] = "port"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_EVENT [] = "event"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_EVENT_COMPLETED [] = "completed"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_EVENT_EMPTY [] = "empty"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_EVENT_STARTED [] = "started"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_EVENT_STOPPED [] = "stopped"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_REQUEST_EVENT_PAUSED [] = "paused"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_RESPONSE_COMPLETE [] = "complete"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_RESPONSE_EXTERNAL_IP [] = "external ip"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_RESPONSE_FAILURE_REASON [] = "failure reason"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_RESPONSE_INCOMPLETE [] = "incomplete"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_RESPONSE_INTERVAL [] = "interval"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_RESPONSE_PEERS6 [] = "peers6"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_RESPONSE_PEERS [] = "peers"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_RESPONSE_PEERS_IP [] = "ip"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_RESPONSE_PEERS_PEER_ID [] = "peer id"
 
const char anonymous_namespace{tracker.cpp}::ANNOUNCE_RESPONSE_PEERS_PORT [] = "port"