mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-13 04:36:16 +00:00
* 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:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user