* Properly nul-terminate the info hash and client id in the tracker

request.

* Implemented options for read-ahead of
chunks. 'preload_min_pipelined', 'preload_min_size' and
'preload_required_rate' are used to decide when to read-ahead a chunk.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@800 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-11-04 16:05:28 +00:00
parent 9d465de7e1
commit 0c393e1cdb
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -53,6 +53,7 @@ public:
static const int e_noent = ENOENT;
static const int e_nomem = ENOMEM;
static const int e_notdir = ENOTDIR;
static const int e_isdir = EISDIR;
static const int e_intr = EINTR;
@@ -73,6 +74,7 @@ public:
static error_number current() { return errno; }
static void clear_global() { errno = 0; }
static void set_global(error_number err) { errno = err.m_errno; }
bool operator == (const error_number& e) const { return m_errno == e.m_errno; }