added bittorrent support(experimental)

This commit is contained in:
Tatsuhiro Tsujikawa 2006-03-21 14:12:51 +00:00
parent a59301bef0
commit df6c7c0385
105 changed files with 7902 additions and 355 deletions

View file

@ -31,6 +31,7 @@ protected:
void createFile(string filename, int addFlags = 0);
void writeDataInternal(const char* data, int len);
int readDataInternal(char* data, int len);
public:
AbstractDiskWriter();
virtual ~AbstractDiskWriter();
@ -38,6 +39,14 @@ public:
void closeFile();
void openExistingFile(string filename);
string sha1Sum(long long int offset, long long int length);
void seek(long long int offset);
void writeData(const char* data, int len, long long int offset);
int readData(char* data, int len, long long int offset);
};
#endif // _D_ABSTRACT_DISK_WRITER_H_