D:/opendownloadmanager/ODM-1.x/Bittorrent/libtorrent-0.12/src/torrent.cpp File Reference

#include <ctime>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <iterator>
#include <algorithm>
#include <set>
#include <cctype>
#include <numeric>
#include <boost/lexical_cast.hpp>
#include <boost/filesystem/convenience.hpp>
#include <boost/bind.hpp>
#include <boost/thread/mutex.hpp>
#include "libtorrent/torrent_handle.hpp"
#include "libtorrent/session.hpp"
#include "libtorrent/torrent_info.hpp"
#include "libtorrent/tracker_manager.hpp"
#include "libtorrent/bencode.hpp"
#include "libtorrent/hasher.hpp"
#include "libtorrent/entry.hpp"
#include "libtorrent/peer.hpp"
#include "libtorrent/bt_peer_connection.hpp"
#include "libtorrent/web_peer_connection.hpp"
#include "libtorrent/peer_id.hpp"
#include "libtorrent/alert.hpp"
#include "libtorrent/identify_client.hpp"
#include "libtorrent/alert_types.hpp"
#include "libtorrent/extensions.hpp"
#include "libtorrent/aux_/session_impl.hpp"

Go to the source code of this file.

Namespaces

namespace  libtorrent

Typedefs

typedef std::pair< int, char
const * > 
libtorrent::country_entry

Enumerations

enum  { tracker_retry_delay_min = 60, tracker_retry_delay_max = 10 * 60, tracker_failed_max = 5 }

Functions

int calculate_block_size (const torrent_info &i, int default_block_size)
bool libtorrent::compare_first (country_entry const &lhs, country_entry const &rhs)


Enumeration Type Documentation

anonymous enum

Enumerator:
tracker_retry_delay_min 
tracker_retry_delay_max 
tracker_failed_max 

Definition at line 98 of file torrent.cpp.


Function Documentation

int @290::calculate_block_size ( const torrent_info i,
int  default_block_size 
) [static]

Definition at line 108 of file torrent.cpp.

References libtorrent::torrent_info::piece_length().

Referenced by libtorrent::torrent::init().


Variable Documentation

tcp::endpoint const& ip

peer_id const& pid

torrent const* tor

Definition at line 144 of file torrent.cpp.

Referenced by libtorrent::web_peer_connection::web_peer_connection().


Generated on Sun May 25 00:19:40 2008 by  doxygen 1.5.6