* Made torrent::Piece part of the api.

* Made libtorrent locale agnostic.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@664 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-04-05 21:09:15 +00:00
parent 3fa08503bb
commit 8a8cfe5e3d
8 changed files with 263 additions and 94 deletions
+5 -2
View File
@@ -44,11 +44,12 @@ namespace rak {
class error_number {
public:
static const int e_access = EACCES;
static const int e_again = EAGAIN;
static const int e_intr = EINTR;
static const int e_deadlk = EDEADLK;
static const int e_connreset = ECONNRESET;
static const int e_connaborted = ECONNABORTED;
static const int e_deadlk = EDEADLK;
static const int e_intr = EINTR;
error_number() : m_errno(0) {}
error_number(int e) : m_errno(e) {}
@@ -66,6 +67,8 @@ public:
static error_number current() { return errno; }
static void clear_global() { errno = 0; }
bool operator == (const error_number& e) const { return m_errno == e.m_errno; }
private:
int m_errno;
};