Furrent
Namespaces | Functions | Variables
downloader.cpp File Reference
#include "download/downloader.hpp"
#include <array>
#include <cstdint>
#include <stdexcept>
#include "download/util.hpp"
#include "hash.hpp"
#include "log/logger.hpp"
Include dependency graph for downloader.cpp:

Namespaces

 fur
 Common types used in all the project.
 
 fur::download
 
 fur::download::downloader
 

Functions

DownloaderError fur::download::downloader::from_socket_error (const socket::SocketError &err)
 

Variables

const int64_t fur::download::downloader::UNCHOKE_TIMEOUT = 15
 
const int64_t fur::download::downloader::HANDSHAKE_LENGTH = 1 + 19 + 8 + 20 + 20
 Length (in bytes) of a BitTorrent handshake. More...
 
const int64_t fur::download::downloader::INFO_HASH_OFFSET = 1 + 19 + 8